\HeaderA{setup\_viewports}{Setup viewports}{setup.Rul.viewports}
\keyword{hplot}{setup\_viewports}
\keyword{internal}{setup\_viewports}
\begin{Description}\relax
Setup matrix of viewports for a layout with given parameters
\end{Description}
\begin{Usage}
\begin{verbatim}setup_viewports(type, rows=nrow(data), cols=ncol(data), data, offset=c(0,0), range, angle=0)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{type}] viewport type
\item[\code{rows}] number of rows
\item[\code{cols}] number of columns
\item[\code{data}] optional data to compute rows and columns from
\item[\code{offset}] offset from top and left
\item[\code{range}] list containing x and y ranges
\item[\code{angle}] 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}\end{ExampleCode}
\end{Examples}

