\HeaderA{init.grid}{Initialization of Grid Parameters}{init.grid}
\keyword{misc}{init.grid}
\begin{Description}\relax
Interactive function for specifying the dimensions of the spot
matrix and the grid matrix. These parameters depend on the printing
layout of the array, and are used for the within print-tip group
normalization implemented in \code{\LinkA{stat.ma}{stat.ma}} and the spatial
representation of spot statistics in \code{\LinkA{plot.spatial}{plot.spatial}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
init.grid()
\end{verbatim}
\end{Usage}
\begin{Arguments}
None.
\end{Arguments}
\begin{Value}
list containing the following components
\begin{ldescription}
\item[\code{nspot.r}] the number of rows of spots per grid;
\item[\code{nspot.c}] the number of columns of spots per grid;
\item[\code{ngrid.r}] the number of rows of grids per image;
\item[\code{ngrid.c}] the number of columns of grids per image.
\end{ldescription}
\end{Value}
\begin{Author}\relax
Yee Hwa Yang, \email{yeehwa@stat.berkeley.edu} \\
Sandrine Dudoit, \email{sandrine@stat.berkeley.edu}
\end{Author}
\begin{References}\relax
Spot manual.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{plot.mva}{plot.mva}}, \code{\LinkA{plot.spatial}{plot.spatial}},
\code{\LinkA{stat.ma}{stat.ma}}, \code{\LinkA{list}{list}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(MouseArray)
# mouse.setup <- init.grid()

## Here is what you should see:
# Enter number of rows of grids per image (ngrid.r): 4
# Enter number of columns of grids per image (ngrid.c): 4
# Enter number of rows of spots per grid (nspot.r): 19  
# Enter number of columns of spots per grid (nspot.c): 21
# Initialization complete
\end{ExampleCode}
\end{Examples}

