【发布时间】:2019-02-11 05:57:25
【问题描述】:
关于在 R 中的 HH 包中旋转绘图中的轴标签有什么建议吗?
在下面的示例中,我希望标签 A、B 和 C 呈 45 度角。 'rot' 只旋转刻度,而 text(object, srt=45) 似乎不起作用。
library(HH)
test<-data.frame('A'=c(10,12,40,12),
'B'=c(14,23,13,30),
'C'=c(11,40,12,16))
rownames(test)<-c("No","Maybe","Plausible","Yes")
likert(t(test)[,1:4], horizontal = FALSE,as.percent = TRUE,
main = NULL,
xlab = "Percent", # becomes ylab due to horizontal arg
ylab = "Condition", #xlab.top = "Total in Condition",
ylab.right = FALSE #removes Row Count Totals from Right)
【问题讨论】: