阅读背景:

如何使用ggplot2生成饼图?

来源:互联网 

I have a vector of values that I would like to display as a pie chart. The vector consists of 1's, 2's, and 3's, and I would like my pie chart to display the percentage of 1's, 2's, and 3's in the vector in addition to labels for the areas. The 1's would be Democrats, 2's Republicans, and 3's Independents. The vector that I have been working with is a column of a dataframe. There may be some type issues, although I've passed it using as.numeric() and as.factor().I have a vector of values that I would like to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: