Description Usage Arguments Value See Also
View source: R/reproducible_graphics.r
Save a ggplot plot
1 2 3 4 5 6 7 8 |
plot |
The plot created by |
filename |
The filename(s) to save (save type depends on extension) |
scale_mult |
A scale multiplier on the size. Defaults to 1; bigger numbers use a larger canvas. (If length 2, multiply width and height) |
bg |
The background color, passed to the output device. The default
is "transparent". If set to "transparent", the plot will be modified to make
the |
device |
The device to use. Default depends on filename extension. Uses
cairo_pdf devices when available. Use "tex" or "tikz" to save with |
reproducible |
Logical. Should we try to make the plot reproducible by
resetting the embedded timestamp? Defaults to false unless the |
The plot (invisibly)
ggplot2::ggsave()
https://reproducible-builds.org/docs/source-date-epoch/
Note that creating reproducible outputs currently depends on the system
command sed
, which isn't installed by default on Windows.
This implementation of reproducible outputs is incompatible with multi-file
outputs, like tikz.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.