Description Usage Arguments Value
View source: R/plotsave_auto.R
Wrapper around ragg::ragg_png()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | raggsave_auto(
folder = "raggsaveauto_img",
p = ggplot2::last_plot(),
n_pad = 3,
padding = stringr::str_pad(1, n_pad, pad = "0"),
img_prefix = "img_",
img_ext = ".png",
width = 20,
height = 12,
unit = "cm",
res = 300,
plot_load = "app",
...
)
|
folder |
Directory for the plots to be accumulated in |
p |
Plot to be saved. Defaults to last plot printed |
n_pad |
Number of |
padding |
Unique identifier for current plot |
img_prefix |
Prefix of the image file name |
img_ext |
Extension of the iamge file name |
width |
Passed to |
height |
Passed to |
unit |
Passed to |
res |
Passed to |
plot_load |
Options for loading the saved plot for viewing. One of |
... |
Passed to |
Returns the value of the current/new graphic device. You can suppress this with invisible()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.