List of Graphical Devices
The following graphics devices are currently available:
windowsThe graphics device for Windows (on screen, to printer and to Windows metafile).
postscriptWrites PostScript graphics commands to a file
xfigDevice for XFIG graphics file format
bitmapbitmap pseudo-device via
pictexWrites TeX/PicTeX graphics commands to a file (of historical interest only)
The following devices will be functional if R was compiled to use them (they exist but will return with a warning on other systems):
X11The graphics device for the X11 windowing system
cairo_psPDF and PostScript devices based on cairo graphics.
svgSVG device based on cairo graphics.
pngPNG bitmap device
jpegJPEG bitmap device
bmpBMP bitmap device
tiffTIFF bitmap device
quartzThe graphics device for the macOS native Quartz 2d graphics system. (This is only functional on macOS where it can be used from the
R.appGUI 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
otherwise. The exception is interactive use under Unix if no screen
device is known to be available, when
pdf() is used.
It is possible for an R package to provide further graphics devices and several packages on CRAN do so. These include other devices outputting SVG and PGF/TiKZ (TeX-based graphics, see http://pgf.sourceforge.net/).