如何使用 R 绘制不同半径的饼图? [英] How to use R to plot a pie plot with different radius?
本文介绍了如何使用 R 绘制不同半径的饼图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如
<块引用>馅饼(1:3)
但半径是恒定的.
如何制作半径分别为1、2、3的饼图?
解决方案
检查
For example,
pie(1:3)
But the radius is constant.
How to make the pie plot which the radius is 1,2,3 respectively?
解决方案
Check radial.pie function in plotrix package
install.packages("plotrix")
library(plotrix)
radial.pie(c(1,2,3), labels=c("One", "Two", "Three"), radlab=TRUE)
would produce following figure
这篇关于如何使用 R 绘制不同半径的饼图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文