| savePlot {grDevices} | R Documentation |
Saves the current plot on a windows device to a file.
savePlot(filename = "Rplot",
type = c("wmf", "emf", "png", "jpeg", "jpg", "bmp",
"ps", "eps", "pdf"),
device = dev.cur(),
restoreConsole = TRUE)
filename |
The filename under which to save the plot, without the extension. |
type |
The type of plot, Windows metafile, PNG, JPEG, BMP (Windows bitmap format), PostScript or PDF. |
device |
A device number of a windows device, by default
the current device. |
restoreConsole |
See the Details section of windows. |
This is equivalent to selecting the ‘Save as’ menu item on the
‘File’ menu of a windows device.
Using filename as "clipboard" or "" with
type = "wmf" will copy to the clipboard.
Types "eps" and "ps" are the same thing apart from the
extension. Similarly "wmf"/"emf" and
"jpeg"/"jpg".
None, but a plot file will be created.