OpenGraphicsDevice: Open Graphics Device

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/OpenGraphicsDevice.R

Description

This function starts the device driver for producing graphics.

Usage

1
2
OpenGraphicsDevice(file, type = "windows", w = 7, h = 7, p = 12,
                   res = 300, win.title = "Save As")

Arguments

file

character; the path of a file for writing (optional).

type

character; the name of a graphics driver, either "postscript", "pdf", "png", or the default "windows".

w, h

numeric; the (nominal) width and height of the canvas of the plotting window in inches. Default is 7 and 7, respectively.

p

numeric; the default point size of plotted text, its default is 12.

res

numeric; the nominal resolution in points per inch (ppi) which will be recorded in the Portable Network Graphics (PNG) file, its default is 300 ppi to set the size of text and line widths.

win.title

character; a string to display as the title of the dialog box, only used if file is not specified.

Details

A "postscript" graphics device produces an Encapsulated PostScript (eps) file and is recommended for figures of publication quality.

Value

A plot device is opened.

Author(s)

J.C. Fisher

See Also

postscript, pdf, png

Examples

1
2
3
4
5
6
7
8
OpenGraphicsDevice(type = "windows")
plot(1:3)
dev.off()
## Not run: 
OpenGraphicsDevice(type = "pdf")
plot(1:3)
dev.off()
## End(Not run)

jfisher-usgs/ObsNetwork documentation built on Jan. 3, 2020, 4:35 p.m.