cex.var 不工作...如何在 coefplot 中更改变量字体的大小

cex.var not working... How to change size of variables font in coefplot

我正在尝试绘制 R 中回归模型的系数(和 95% CI),但变量名称很小。我正在尝试增加名称的大小,但 coefplot(model, cex.var=3.0) 中的 cex.var=3.0 行似乎没有任何改变。

我试过:cex=3.0cex.vars=3.0cex.lab=3.0 都无济于事。

有什么建议吗?

情节是使用ggplot2制作的,所以你需要使用主题。像这样

data(iris)
model <- lm(Sepal.Width ~ Sepal.Length, data=iris)
coefplot(model) + 
theme(text = element_text(size=30),
      axis.text.x = element_text(angle=90, vjust=1))