\HeaderA{viewport\_default}{Default viewports}{viewport.Rul.default}
\keyword{hplot}{viewport\_default}
\keyword{internal}{viewport\_default}
\begin{Description}\relax
Set up named viewports that the other components use.
\end{Description}
\begin{Usage}
\begin{verbatim}viewport_default(plot, guides=guides_basic(plot), scales=scales_default(plot))\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{plot}] plot object
\item[\code{guides}] guides grobs
\item[\code{scales}] scales grobs
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function sets up a \code{\LinkA{vpTree}{vpTree}} in which all of
the components of a plot will be placed.   This allows for a clean
separation between the generation of plot objects, and their placement, and
means none of the components have to know anything about the others.

This function is responsible for the overall layout of the plot, ie
where the panels, labels and axes go.  In future, I will add more
viewport layout functions so that you can have the same layout as, e.g.,
the trellis default.
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}\end{ExampleCode}
\end{Examples}

