刚开始学习R语言,小小研究了下,有个笨笨的方法楼主可以参考下:
opar <- par(no.readonly = TRUE)
slices <- c(10,12,4,16,8)
lbls <- c("US","UK","Australia","Germany","France")
par(col = "red",cex = 1.5)
pie(slices,labels = lbls)
title(main = "Simple Pie Chart",col.main = "blue",cex.main = 2)
par(opar)