\Header{maCompCoord}{Generate grid and spot matrix coordinates}
\keyword{manip}{maCompCoord}
\keyword{methods}{maCompCoord}
\begin{Description}\relax
This function generates grid and spot matrix coordinates from ranges of
rows and columns for the grid and spot matrices. Spots on the array are numbered consecutively starting
from the top left grid and the top left spot within each grid.
\end{Description}
\begin{Usage}
\begin{verbatim}
maCompCoord(grows, gcols, srows, scols)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{grows}] numeric vector of grid rows.
\item[\code{gcols}] numeric vector of grid columns.
\item[\code{srows}] numeric vector of spot rows.
\item[\code{scols}] numeric vector of spot columns.
\end{ldescription}
\end{Arguments}
\begin{Value}
a matrix of spot four-coordinates, with rows corresponding to
spots and columns to grid row, grid column, spot row, and spot column coordinates.\end{Value}
\begin{Author}\relax
Yee Hwa (Jean) Yang, Sandrine Dudoit, \url{http://www.stat.berkeley.edu/~sandrine}.
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{marrayLayout}}, \code{\Link{maCoord2Ind}},
\code{\Link{maInd2Coord}}, \code{\Link{maCompInd}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

maCompCoord(1:2,1,1:4,1:3)

\end{ExampleCode}
\end{Examples}

