jacob-long / jtools

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

Unexpected behaviour writing plot_summs to PDF #29

Closed mattmoo closed 2 years ago

mattmoo commented 6 years ago

I seem to be unable to write plot_summs to PDF in a similar way to how I did pre-1.0

The following works when copy and pasted into the command line, but when run from a script seems to return an empty file.

states <- as.data.frame(state.x77)
fit1 <- lm(Income ~ Frost, data = states)
pdf('test.pdf')
plot_summs(fit1)
dev.off()
jacob-long commented 6 years ago

I'm not sure what to make of this. Does this happen with other plots from ggplot2?

mattmoo commented 6 years ago

Works fine with other ggplot2 plots.

jacob-long commented 6 years ago

I'm not replicating this on my machine. There could be a few reasons: