save_plot | R Documentation |
ggplot
Objectsave_plot()
saves a ggplot
object to the specified path. It is a wrapper
around ggsave()
that takes the plot as the
first argument and provides alternate defaults for use in SCHD slides. Unlike
ggsave()
the ggplot
object must always be supplied explicitly, and it
will not overwrite existing files by default.
save_plot(gg_obj, path, width = 16, height = 9, force = FALSE, ...)
gg_obj |
A |
path |
The location for saving |
width |
The width of the saved figure, in inches by default |
height |
The height of the saved figure, in inches by default |
force |
Should existing files be overwritten? |
... |
Additional arguments to pass to
|
The gg_obj
, invisibly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.