\inputencoding{utf8}
\HeaderA{get.layout}{Layout for Lattice Functions}{get.layout}
\keyword{method}{get.layout}
%
\begin{Description}\relax
\code{get.layout} is a utility function called by \code{estimation.plot} and 
\code{simulation.plot}. It provides a layout for \pkg{lattice} functions based
upon a user-defined number of plots per page. \code{get.layout} is typically 
not called directly by users.
\end{Description}
%
\begin{Usage}
\begin{verbatim}
  get.layout(nplot = NULL)
\end{verbatim}
\end{Usage}
%
\begin{Arguments}
\begin{ldescription}
\item[\code{nplot}] A integer scalar defining the number of plots per page.
\end{ldescription}
\end{Arguments}
%
\begin{Value}
Return a vector of two integers (nx,ny), where nx is the number of rows and
ny the number of columns for the \pkg{lattice} layout.
\end{Value}
%
\begin{Author}\relax
Sebastien Bihorel (\email{sb.pmlab@gmail.com})
\end{Author}
%
\begin{SeeAlso}\relax
\code{\LinkA{estimation.plot}{estimation.plot}},
\code{\LinkA{simulation.plot}{simulation.plot}}
\end{SeeAlso}
%
\begin{Examples}
\begin{ExampleCode}
  get.layout(1)
  get.layout(7)
  ## Not run: get.layout(1:5)
  ## Not run: get.layout(NA)
\end{ExampleCode}
\end{Examples}
