ggsave very slow

I am experiencing very slow saving of plots generated by ggplot2. Is there any more efficient approach of saving ggplot figures?

update: I figured out the issue, when I switch from stat_smooth(method = "loess") to its default method, ggsave works well

Maybe you can change the device, width, and dpi argument.

Any example? Thanks.

Heya @Peter_Griffin! Maybe you could put a reproducible example, or reprex, together for us? If you can throw us an example along with some timings (the bench package is great for this), we can work out whether this is anomalous slowdown or whether it's just ggplot2 (which, to be fair, is not the fastest plotting system around in terms of render time).

I figured out the issue, when I switch from stat_smooth(method = "loess") to its default method, ggsave works well

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.