Saves the current plot on a
windows device to a file.
1 2 3 4 5
The filename under which to save the plot.
The type of plot, Windows metafile, PNG, JPEG, BMP (Windows bitmap format), TIFF, PostScript or PDF.
A device number of a
See the ‘Details’ section
This is equivalent to selecting the ‘Save as’ menu item on the
‘File’ menu of a
filename does not include a dot (‘.’), savePlot
will add the file type as an extension; that is, the filename will
be set to
paste(filename, type, sep = "."). If a dot is present in
filename, the filename is assumed to include an extension and
is used without change.
type = "wmf" will copy to the clipboard.
"ps" are the same thing apart from the
extension for the default
JPEG quality is 75%, and TIFF is saved without compression.
None, but a plot file will be created.
There is a similar function of the same name but fewer types for
X11 devices on Unix-alikes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.