How to use R to plot a pie plot with different radius?

倖福魔咒の 提交于 2021-02-08 11:03:06

问题


For example,

pie(1:3)

But the radius is constant.

How to make the pie plot which the radius is 1,2,3 respectively?


回答1:


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



来源:https://stackoverflow.com/questions/33343463/how-to-use-r-to-plot-a-pie-plot-with-different-radius

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!