0

I'm trying to plot the coefficients (and 95% CIs) from a regression model in R but the variable names are tiny. I'm trying to increase the size of the names but the line cex.var=3.0 incoefplot(model, cex.var=3.0) doesn't seem to be changing anything.

I've tried: cex=3.0, cex.vars=3.0, and cex.lab=3.0 to no avail.

Any suggestions?

Neue1987
  • 171
  • 1
  • 2
  • 13
  • 4
    Please consider to add a minimal, reproducible example, as well as any call to extra packages. –  Aug 17 '15 at 06:13
  • There are multiple versions of `coefplot`, some of which appear to use base graphics and others using ggplot2/grid methods. (There is also a Stata-coefplot.) You should construct an example and edit your question to include library call to the package where you are getting `coefplot`. – IRTFM Aug 17 '15 at 15:05

1 Answers1

1

The plot is made using ggplot2 so you need to use theme. Something like this

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)) 
nathanesau
  • 1,681
  • 16
  • 27