Description Usage Arguments Details
ggsave is a convenient function for saving a plot. It defaults to saving the last plot that you displayed, and for a default size uses the size of the current graphics device. It also guesses the type of graphics device from the extension. This means the only argument you need to supply is the filename.
1 2 3 4 5 |
filename |
file name/filename of plot |
plot |
plot to save, defaults to last plot displayed |
device |
device to use, automatically extract from file name extension |
path |
path to save plot to (if you just want to set path and not filename) |
scale |
scaling factor |
width |
width (defaults to the width of current plotting window) |
height |
height (defaults to the height of current plotting window) |
units |
units for width and height when either one is explicitly specified (in, cm, or mm) |
dpi |
dpi to use for raster graphics |
limitsize |
when |
... |
other arguments passed to graphics device |
ggsave
currently recognises the extensions eps/ps,
tex (pictex), pdf, jpeg, tiff, png, bmp, svg and wmf
(windows only).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.