Description Usage Arguments Author(s) Examples
ggsave()
is a convenient function for saving a plot. It defaults to
saving the last plot that you displayed, using the size of the current
graphics device. It also guesses the type of graphics device from the
extension.
1 2 3 |
filename |
File name to create on disk. |
plot |
Plot to save, defaults to last plot displayed. |
device |
Device to use (function or any of the recognized extensions,
e.g. |
path |
Path to save plot to (combined with filename). |
scale |
Multiplicative scaling factor. |
width, height |
Plot dimensions, defaults to size of current graphics device. |
units |
Units for width and height when specified explicitly (in, cm, or mm) |
dpi |
Resolution used for raster outputs. |
limitsize |
When |
... |
Other arguments passed on to graphics device |
Nicholas Hamilton
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.