\HeaderA{maCompLayout}{Generate a marrayLayout object}{maCompLayout}
\keyword{manip}{maCompLayout}
\begin{Description}\relax
Take a matrix of cooordiates and generate a marrayLayout object.
\end{Description}
\begin{Usage}
\begin{verbatim}
maCompLayout(mat, ncolumns = 4)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{mat}] a matrix of coordinates, this can either be n by 3 matrix
with columns (Block, Row, Column) or n by 4 matrix with columns
(Grid.R, Grid.C, Spot.R, Spot.C)
\item[\code{ncolumns}] For n by 3 matrix, the number of meta-grid columns.
By default, it is set to 4.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\end{Details}
\begin{Value}
An object of class \code{"\LinkA{marrayLayout}{marrayLayout}"}.
\end{Value}
\begin{Author}\relax
Jean Yang
\end{Author}
\begin{Examples}
\begin{ExampleCode}
X <- cbind(Block = c(1,1,2,2,3,3,4,4), Rows=c(1,2,1,2,1,2,1,2), Columns=rep(1,8))
maCompLayout(X, ncolumns=2)
\end{ExampleCode}
\end{Examples}


