我正在使用DescTools RPlotCirc()
包的功能来可视化列联表:
library(DescTools)
tab <- matrix(c(2,5,8,3,10,12,5,7,15), nrow=3, byrow=FALSE)
dimnames(tab) <- list(c("ABCDEFG","BCDEFGH","CDEFGHI"), c("D","E","F"))
PlotCirc( tab,
acol = c("dodgerblue","seagreen2","limegreen","olivedrab2","goldenrod2","tomato2"),
rcol = SetAlpha(c("red","orange","olivedrab1"), 0.5)
)
问题:
如何旋转所有标签(左侧和右侧)以使它们从圆圈(指向圆圈中间的文本基线)散开?即第一个标签“ABCDEFG”应该向上旋转几乎-90 度,而“CDEFGHI”应该旋转大约45 度指向下方等等。