pie3D
我正在使用from plotrix
package绘制一个 3D 饼图:
dev.new(width=6, height=5)
pie3D(weights, radius = 0.8, labels=paste(names(weights), labels, sep = "\n"), explode=0.05, mar=c(4, 4, 4, 4), border = F, col = my.col, main="Asset Allocation", labelcex = 0.8, shade = 0.5)
我得到以下信息:
如您所见,标签彼此重叠。我尝试修改mar
输入(边距),但效果不佳。有没有办法增加图表上标签之间的间距,从而减少卡顿?请记住,我希望图形的半径保持固定在 0.9
谢谢!