R - 增加李克特图中数值的字体大小

R - increase the font size of the numeric value in likert graph

我想增加图中那些百分比值的字体大小。比如那些56%、19%、25%.

我目前使用的代码

Q5 <- likert(tmp)
plot(Q5, ordered=FALSE)  + theme(aspect.ratio=0.3, legend.text =element_text(color="black",size=8), axis.text=element_text(color="black",size=12))

我尝试在 plot 函数中添加 cex=5,但一点效果都没有。

假设您使用的是 likert 包,您可以使用 text.size 参数设置文本标签的大小:

plot(Q5, text.size=5, ordered=FALSE)

您可以通过 运行 ?likert.options 查看李克特图的各种选项的描述。