Rev 85981 | 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-2023 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:\describe{\item{\code{\link{windows}}:}{On Windows only, the graphics device forWindows (on screen, to printer and to Windows metafile).}\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 \I{XFig} graphics file format. (Ofhistorical interest only, deprecated in \R 4.4.0.)}\item{\code{\link{bitmap}}:}{bitmap pseudo-device via\code{Ghostscript} (if available).}\item{\code{\link{pictex}}:}{Writes TeX/\I{PicTeX} graphics commands to afile (of historical interest only, deprecated in R 4.4.0).}}The following devices will be functional if \R was compiled to usethem (they exist but will return with a warning on other systems):\describe{\item{\code{\link{cairo_pdf}}, \code{cairo_ps}:}{PDF and PostScriptdevices based on \I{cairo} graphics.}\item{\code{\link{svg}}:}{SVG device based on \I{cairo} graphics}\item{\code{\link{png}}:}{PNG bitmap device}\item{\code{\link{jpeg}}:}{JPEG bitmap device}\item{\code{\link{bmp}}:}{\abbr{BMP} bitmap device}\item{\code{\link{tiff}}:}{TIFF bitmap device}}On Unix-alikes (including macOS) only:\describe{\item{\code{\link{X11}}:}{The graphics device for the X11 windowing system}\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.)}}}\details{If no device is open, calling any high-level graphics function will causea device to be opened. Which device is determined 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 (or an \R front-end such as \I{RStudio})to provide further graphics devices and several packages on CRAN doso. These include devices outputting SVG (\CRANpkg{svglite} and\abbr{PGF}/\I{TiKZ} (\CRANpkg{tikzDevice}, TeX-based graphics, see\url{https://pgf.sourceforge.net/}).}\seealso{The individual help files for further information on any of thedevices listed here;\describe{\item{on Windows:}{\code{\link{windows.options}},}\item{on a Unix-alike:}{\code{\link{X11}.options}, \code{\link{quartz.options}},}}\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}}.On Unix-alikes only:\cr\code{\link{capabilities}} to see if \code{\link{X11}},\code{\link{jpeg}}, \code{\link{png}}, \code{\link{tiff}},\code{\link{quartz}} and the \I{cairo}-based devices are available.}\examples{\dontrun{## open the default screen device on this platform if no device is## openif(dev.cur() == 1) dev.new()}}\keyword{device}