ggplot2::ggsave()
R/ggsaver.R
ggsaver.Rd
This only exists to make it easy to use it in make_link()
make_link()
ggsaver(plot, filename, ...)
Plot
Note
Arguments forwarded to ggplot2::ggsave()
No return value, called for side effects
library(ggplot2) my_plot <- ggplot(data=mtcars, aes(x=hp, y=mpg)) + geom_point() make_link(my_plot, folder=tempdir(), file_suffix = ".png", save_fn = ggsaver, width = 16, height = 16, units = "cm") #> [1] "[download figure data](/tmp/RtmpVgTrwH/5f5dc1d5966b3468c2f3d4f2166c97bc.png)"