\Header{x11}{X Window System Graphics}
\alias{X11}{x11}
\keyword{device}{x11}
\begin{Usage}
\begin{verbatim}
X11(display = "", width = 7, height = 7, pointsize = 12,
    gamma = 1, colortype = options()$X11colortype,
    maxcubesize = 256)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{display}] the display on which the graphics window will appear.
The default is to use the value in the user's environment variable
\texttt{DISPLAY}.
\item[\texttt{width}] the width of the plotting window in inches.
\item[\texttt{height}] the height of the plotting window in inches.
\item[\texttt{pointsize}] the default pointsize to be used.
\item[\texttt{gamma}] the gamma correction factor.  This value is used
to ensure that the colors displayed are linearly related to
RGB values.  A value of around 0.5 is appropriate for many PC
displays.  A value of 1.0 (no correction) is usually appropriate
for high-end displays or Macintoshs.
\item[\texttt{colortype}] the kind of color model to be used.  The
possibilities are \texttt{"mono"}, \texttt{"gray"}, \texttt{"pseudo"},
\texttt{"pseudo.cube"} and \texttt{"true"}.
\item[\texttt{maxcubesize}] can be used to limited the size of color
cube allocated for pseudocolor devices.
\end{ldescription}
\end{Arguments}
\begin{Description}
\texttt{X11} starts a graphics device driver for the X Window System
(version 11).  This can only be done on machines that run X.
\texttt{x11} is recognized as a synonym for \texttt{X11}.

By default, an X11 device will use the best color rendering
strategy that it can.  The choice can be overriden with the
\texttt{colortype} parameter.  A value of \texttt{"mono"} results in
black and white graphics, \texttt{"gray"} in grayscale and
\texttt{"true"} in truecolor graphics (if this is possible).  The
values \texttt{"pseudo"} and \texttt{"pseudo.cube"} provide color
strategies for pseudocolor displays.  The first strategy provides
on-demand color allocation which produces exact colors until
the color resources of the display are exhausted.  The second
causes a standard color cube to be set up, and requested colors
are approximated by the closest value in the cube.  The default
strategy for pseudocolor displays is \texttt{"pseudo"}.\end{Description}
\begin{SeeAlso}
\texttt{\Link{postscript}}, \texttt{\Link{macintosh}},
\texttt{\Link{Devices}}.\end{SeeAlso}

