\HeaderA{dev.size}{Find Size of Device Surface}{dev.size}
\keyword{dplot}{dev.size}
\begin{Description}\relax
Find the dimensions of the device surface of the current device.
\end{Description}
\begin{Usage}
\begin{verbatim}
dev.size(units = c("in", "cm", "px"))
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{units}] the units in which to return the value -- inches, cm, or
pixels (device units).
\end{ldescription}
\end{Arguments}
\begin{Value}
A two-element numeric vector giving width and height of the current
device; a new device is opened if there is none, similarly to
\code{\LinkA{dev.new}{dev.new}()}.
\end{Value}
\begin{SeeAlso}\relax
The size information in inches can be obtained by
\code{\LinkA{par}{par}("din")}, but this provides a way to access it
independent of the graphics sub-system in use.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
dev.size("cm")
\end{ExampleCode}
\end{Examples}

