View source: R/plot-save-render.R
raggsave_auto | R Documentation |
Wrapper around ragg::agg_png()
that saves the output from a plotting expression to a special folder
and opens it using the system's default app for the graphic type.
raggsave_auto(plot_expr = NULL, ..., load_as_magick = FALSE)
plot_expr |
An expression that plots a figure to a device as a side effect, to be captured by |
... |
Passed to |
load_as_magick |
Whether to show information about the saved plot and invisibly return an ImageMagick object of the plot for post-processing. Defaults to |
A magick object or path to the saved plot.
Creates a folder /.raggsave_auto
in the working directory where figures are saved
with zero-padding to 3 digits (e.g., raggsave_auto-001.png
). Appends .raggsave_auto
to
a .gitignore
file if it exists.
Global params can be set through options()
, with the argument name followed by pgl.raggsave_auto.
such as options(pgl.raggsave_auto.width = 7)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.