Save ggplots with options
1 2 |
filename |
A file path/name wrapped in |
plot |
Plot to save, defaults to last plot displayed. |
saveplots |
A logical indicating whether to save the plot. Can be
overridden by a global variable named |
width |
Defaults to 180 mm |
height |
Defaults to 180 mm |
units |
Defaults to "mm" |
dpi |
Defaults to 300 |
... |
Other arguments passed on to the graphics device function,
as specified by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.