- city <- c(rep("北京",53),rep("上海",29),rep("天津",18))
- data1<-data.frame(
- index = 1:100,
- rate = city)
- ggplot(data1)+geom_bar(aes(x=factor(1),fill=city))+coord_polar(theta="y")
|
楼主: xlyshuai
|
10591
4
[问答] ggplot2画图,如何将柱状图变成饼状图? |
|
已卖:409份资源 硕士生 28%
-
|
5论坛币
| |
|
|
| ||
|
学习无止尽
|
||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


