beautiful Pie Charts with R

前端 未结 4 1815
余生分开走
余生分开走 2020-12-07 13:34

Let\'s say I have this simple data:

 mydata <- data.frame(group=c(\"A\", \"B\", \"0\", \"AB\"), FR=c(20, 32, 32, 16))

If I want to creat

4条回答
  •  粉色の甜心
    2020-12-07 14:19

    You can try with the pie3D() function from the plotrix package:

    library(plotrix)
    pie3D(mydata$FR, labels = mydata$group, main = "An exploded 3D pie chart", explode=0.1, radius=.9, labelcex = 1.2,  start=0.7)
    

提交回复
热议问题