Devices {grDevices} | R Documentation |
The following graphics devices are currently available:
postscript
Writes PostScript graphics commands to
a file
pdf
Write PDF graphics commands to a file
pictex
Writes LaTeX/PicTeX graphics commands to a
file
png
PNG bitmap device
jpeg
JPEG bitmap device
bmp
BMP bitmap device
tiff
TIFF bitmap device
xfig
Device for XFIG graphics file format
bitmap
bitmap pseudo-device via
GhostScript
(if available).
X11
The graphics device for the X11 Window system
cairo_pdf
, cairo_ps
PDF and PostScript
devices based on cairo graphics.
quartz
The graphics device for the Mac OS X
native Quartz 2d graphics system. (This is only functional on Mac
OS X where it can be used from the R.app
GUI and from the
command line: but it will display on the local screen even for a
remote session.)
If no device is open, using a high-level graphics function will cause
a device to be opened. Which device is given by
options("device")
which is initially set as the most
appropriate for each platform: a screen device for most interactive use and
pdf
(or the setting of R_DEFAULT_DEVICE)
otherwise. The exception is interactive use under Unix if no screen
device is known to be available, when pdf()
is used.
The individual help files for further information on any of the
devices listed here;
X11.options
, quartz.options
,
ps.options
and pdf.options
for how to
customize devices.
dev.interactive
,
dev.cur
, dev.print
,
graphics.off
, image
,
dev2bitmap
.
capabilities
to see if X11
, jpeg
png
and quartz
are available.
## Not run: ## open the default screen device on this platform if no device is ## open if(dev.cur() == 1) dev.new() ## End(Not run)