Previous question asked how the coefficients can be plotted in coefplot
in descending order. The answer was to include sort = 'magnitude'
However, I then discovered that this method does not work when plotting multiple models using multiplot
:
data(tips, package = "reshape2")
mod1 <- lm(tip ~ day + sex + smoker, data = tips)
mod2 <- lm(tip ~ day + sex + smoker + size, data = tips)
multiplot(mod1, mod2, decreasing = TRUE, sort = "magnitude")
Is there a way to do this with multiplot
? I realize it might not be straightforward. I just wonder if I am missing something.