This help topic is for R version 1.5.0. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/savePlot.html
savePlot {base}R Documentation

Save Windows Plot to a File

Description

Saves the current plot on a windows device to a file.

Usage

savePlot(filename="Rplot",
         type=c("wmf", "png", "jpeg", "jpg", "bmp", "ps", "pdf"),
         device=dev.cur())

Arguments

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.

Details

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.

Value

None, but a plot file will be created.

Author(s)

Guido Masarotto, B. D. Ripley

See Also

windows, dev.print


[Package base version 1.5.0 ]