jacob-long / jtools

Tools for summarizing/visualizing regressions and other helpful stuff
https://jtools.jacob-long.com
GNU General Public License v3.0
165 stars 22 forks source link

No faceting for plot_summs #88

Closed mattmoo closed 2 years ago

mattmoo commented 4 years ago

It seems that facets do not work for plot_summs. Using jtools v2.1.0

library(jtools)

set.seed(1234)

states <- as.data.frame(state.x77)
fit1 <- lm(Income ~ Frost + Illiteracy +
             Population + Area,
           data = states, weights = runif(50, 0.1, 3))

p = plot_summs(fit1,
               groups = list(pane_1 = c("Frost", "Illiteracy"), pane_2 = c("Population", "Area")),
               facet.rows = 2)

That snippet does not produce facets for me, but does if I replace plot_coefs with plot_summs.

jacob-long commented 2 years ago

Thanks for reporting. The tip about plot_coefs() working made the issue easy to troubleshoot.