Rev 70779 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/grDevices/man/Devices.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2013 R Core Team% Distributed under GPL 2 or later\name{Devices}\title{List of Graphical Devices}\alias{Devices}\alias{device}\description{The following graphics devices are currently available:\itemize{#ifdef windows\item \code{\link{windows}} The graphics device for Windows (on screen,to printer and to Windows metafile).#endif\item \code{\link{pdf}} Write PDF graphics commands to a file\item \code{\link{postscript}} Writes PostScript graphics commands toa file\item \code{\link{xfig}} Device for XFIG graphics file format\item \code{\link{bitmap}} bitmap pseudo-device via\code{Ghostscript} (if available).\item \code{\link{pictex}} Writes TeX/PicTeX graphics commands to afile (of historical interest only)}The following devices will be functional if \R was compiled to usethem (they exist but will return with a warning on other systems):\itemize{#ifdef unix\item \code{\link{X11}} The graphics device for the X11 windowing system#endif\item \code{\link{cairo_pdf}}, \code{cairo_ps} PDF and PostScriptdevices based on cairo graphics.\item \code{\link{svg}} SVG device based on cairo graphics.\item \code{\link{png}} PNG bitmap device\item \code{\link{jpeg}} JPEG bitmap device\item \code{\link{bmp}} BMP bitmap device\item \code{\link{tiff}} TIFF bitmap device#ifdef unix\item \code{\link{quartz}} The graphics device for the macOSnative Quartz 2d graphics system. (This is only functional onmacOS where it can be used from the \code{R.app} GUI and from thecommand line: but it will display on the local screen even for aremote session.)#endif}}\details{If no device is open, using a high-level graphics function will causea device to be opened. Which device is given by\code{\link{options}("device")} which is initially set as the mostappropriate for each platform: a screen device for most interactive use and\code{\link{pdf}} (or the setting of \env{R_DEFAULT_DEVICE})otherwise. The exception is interactive use under Unix if no screendevice is known to be available, when \code{pdf()} is used.It is possible for an \R package to provide further graphics devicesand several packages on CRAN do so. These include other devices outputtingSVG and PGF/TiKZ (TeX-based graphics, see \url{http://pgf.sourceforge.net/}).}\seealso{The individual help files for further information on any of thedevices listed here;#ifdef windows\code{\link{windows.options}},#endif#ifdef unix\code{\link{X11}.options}, \code{\link{quartz.options}},#endif\code{\link{ps.options}} and \code{\link{pdf.options}} for how tocustomize devices.\code{\link{dev.interactive}},\code{\link{dev.cur}}, \code{\link{dev.print}},\code{\link{graphics.off}}, \code{\link{image}},\code{\link{dev2bitmap}}.#ifdef unix\code{\link{capabilities}} to see if \code{\link{X11}},\code{\link{jpeg}} \code{\link{png}}, \code{\link{tiff}},\code{\link{quartz}} and the cairo-based devices are available.#endif}\examples{\dontrun{## open the default screen device on this platform if no device is## openif(dev.cur() == 1) dev.new()}}\keyword{device}