EVOLUTION-MANAGER
Edit File: Devices.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: List of Graphical Devices</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for Devices {grDevices}"><tr><td>Devices {grDevices}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>List of Graphical Devices</h2> <h3>Description</h3> <p>The following graphics devices are currently available: </p> <dl> <dt><code><a href="windows.html">windows</a></code>:</dt><dd><p>On Windows only, the graphics device for Windows (on screen, to printer and to Windows metafile).</p> </dd> <dt><code><a href="pdf.html">pdf</a></code>:</dt><dd><p>Write PDF graphics commands to a file</p> </dd> <dt><code><a href="postscript.html">postscript</a></code>:</dt><dd><p>Writes PostScript graphics commands to a file</p> </dd> <dt><code><a href="xfig.html">xfig</a></code>:</dt><dd><p>Device for XFIG graphics file format</p> </dd> <dt><code><a href="dev2bitmap.html">bitmap</a></code>:</dt><dd><p>bitmap pseudo-device via <code>Ghostscript</code> (if available).</p> </dd> <dt><code><a href="pictex.html">pictex</a></code>:</dt><dd><p>Writes TeX/PicTeX graphics commands to a file (of historical interest only) </p> </dd> </dl> <p>The following devices will be functional if <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> was compiled to use them (they exist but will return with a warning on other systems): </p> <dl> <dt><code><a href="cairo.html">cairo_pdf</a></code>, <code>cairo_ps</code>:</dt><dd><p>PDF and PostScript devices based on cairo graphics.</p> </dd> <dt><code><a href="cairo.html">svg</a></code>:</dt><dd><p>SVG device based on cairo graphics</p> </dd> <dt><code><a href="png.html">png</a></code>:</dt><dd><p>PNG bitmap device</p> </dd> <dt><code><a href="png.html">jpeg</a></code>:</dt><dd><p>JPEG bitmap device</p> </dd> <dt><code><a href="png.html">bmp</a></code>:</dt><dd><p>BMP bitmap device</p> </dd> <dt><code><a href="png.html">tiff</a></code>:</dt><dd><p>TIFF bitmap device</p> </dd> </dl> <p>On Unix-alikes (incl. Mac) only: </p> <dl> <dt><code><a href="x11.html">X11</a></code>:</dt><dd><p>The graphics device for the X11 windowing system</p> </dd> <dt><code><a href="quartz.html">quartz</a></code>:</dt><dd><p>The graphics device for the macOS native Quartz 2d graphics system. (This is only functional on macOS where it can be used from the <code>R.app</code> GUI and from the command line: but it will display on the local screen even for a remote session.)</p> </dd> </dl> <h3>Details</h3> <p>If no device is open, calling any high-level graphics function will cause a device to be opened. Which device is determined by <code><a href="../../base/html/options.html">options</a>("device")</code> which is initially set as the most appropriate for each platform: a screen device for most interactive use and <code><a href="pdf.html">pdf</a></code> (or the setting of <span class="env">R_DEFAULT_DEVICE</span>) otherwise. The exception is interactive use under Unix if no screen device is known to be available, when <code>pdf()</code> is used. </p> <p>It is possible for an <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> package (or an <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> front-end such as RStudio) 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 <a href="http://pgf.sourceforge.net/">http://pgf.sourceforge.net/</a>). </p> <h3>See Also</h3> <p>The individual help files for further information on any of the devices listed here; </p> <dl> <dt>on Windows:</dt><dd><p><code><a href="windows.options.html">windows.options</a></code>,</p> </dd> <dt>on a Unix-alike:</dt><dd><p><code><a href="x11.html">X11</a>.options</code>, <code><a href="quartz.html">quartz.options</a></code>,</p> </dd> </dl> <p><code><a href="ps.options.html">ps.options</a></code> and <code><a href="pdf.options.html">pdf.options</a></code> for how to customize devices. </p> <p><code><a href="dev.interactive.html">dev.interactive</a></code>, <code><a href="dev.html">dev.cur</a></code>, <code><a href="dev2.html">dev.print</a></code>, <code><a href="dev.html">graphics.off</a></code>, <code><a href="../../graphics/html/image.html">image</a></code>, <code><a href="dev2bitmap.html">dev2bitmap</a></code>. </p> <p>On Unix-alikes only:<br /> <code><a href="../../base/html/capabilities.html">capabilities</a></code> to see if <code><a href="x11.html">X11</a></code>, <code><a href="png.html">jpeg</a></code>, <code><a href="png.html">png</a></code>, <code><a href="png.html">tiff</a></code>, <code><a href="quartz.html">quartz</a></code> and the cairo-based devices are available. </p> <h3>Examples</h3> <pre>## Not run: ## open the default screen device on this platform if no device is ## open if(dev.cur() == 1) dev.new() ## End(Not run)</pre> <hr /><div style="text-align: center;">[Package <em>grDevices</em> version 3.6.0 <a href="00Index.html">Index</a>]</div> </body></html>