\HeaderA{Devices}{List of Graphical Devices}{Devices}
\aliasA{device}{Devices}{device}
\keyword{device}{Devices}
\begin{Description}\relax
The following graphics devices are currently available:
\Itemize{
\item \code{\LinkA{postscript}{postscript}} Writes PostScript graphics commands to
a file
\item \code{\LinkA{pdf}{pdf}} Write PDF graphics commands to a file
\item \code{\LinkA{pictex}{pictex}} Writes LaTeX/PicTeX graphics commands to a
file
\item \code{\LinkA{xfig}{xfig}} Device for XFIG graphics file format
\item \code{\LinkA{bitmap}{bitmap}} bitmap pseudo-device via
\code{GhostScript} (if available).
}
The following devices will be available if \R{} was compiled to use them:
\Itemize{
\item \code{\LinkA{X11}{X11}} The graphics driver for the X11 Window
system
\item \code{\LinkA{png}{png}} PNG bitmap device
\item \code{\LinkA{jpeg}{jpeg}} JPEG bitmap device
}
\end{Description}
\begin{Details}\relax
If no device is open, using a high-level graphics function will cause
a device to be opened.  Which device is given by
\code{\LinkA{options}{options}("device")} which is initially set as the most
appropriate for each platform: a screen device for most interactive use and
\code{\LinkA{postscript}{postscript}} otherwise.  The exception is interactive
use under Unix if no screen device is known to be available, when
\code{postscript()} is used for most systems; \code{pdf()} for Mac OS X.
\end{Details}
\begin{SeeAlso}\relax
The individual help files for further information on any of the
devices listed here;

\code{\LinkA{dev.interactive}{dev.interactive}},
\code{\LinkA{dev.cur}{dev.cur}}, \code{\LinkA{dev.print}{dev.print}},
\code{\LinkA{graphics.off}{graphics.off}}, \code{\LinkA{image}{image}},
\code{\LinkA{dev2bitmap}{dev2bitmap}}.

\code{\LinkA{capabilities}{capabilities}} to see if \code{\LinkA{X11}{X11}}, \code{\LinkA{jpeg}{jpeg}}
and \code{\LinkA{png}{png}} are available.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}## Not run: 
## open the default screen device on this platform if no device is
## open
if(dev.cur() == 1) get(getOption("device"))()
## End(Not run)\end{ExampleCode}
\end{Examples}

