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"),
         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) or PostScript.
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 devga 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

dev.print


[Package Contents]