save_plot | R Documentation |
ggplot
Objectsave_plot()
saves a ggplot
object to the specified path.
save_plot( gg_obj = ggplot2::last_plot(), path, ratio = c(16, 9), size = 0.75, ... )
gg_obj |
A |
path |
The location and file for saving the plot. The image type is inferred from the file extension. |
ratio |
The aspect ratio of the figure; defaults to |
size |
The relative size of the figure; defaults to |
... |
Additional arguments to pass to
|
The ggplot
object (invisibly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.