\HeaderA{somgrid}{Plot SOM Fits}{somgrid}
\aliasA{plot.SOM}{somgrid}{plot.SOM}
\aliasA{plot.somgrid}{somgrid}{plot.somgrid}
\keyword{classif}{somgrid}
\begin{Description}\relax
Plotting functions for SOM results.
\end{Description}
\begin{Usage}
\begin{verbatim}
somgrid(xdim = 8, ydim = 6, topo = c("rectangular", "hexagonal"))

## S3 method for class 'somgrid':
plot(x, type = "p", ...)

## S3 method for class 'SOM':
plot(x, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{xdim, ydim}] dimensions of the grid
\item[\code{topo}] the topology of the grid.
\item[\code{x}] an object inheriting from class \code{"somgrid"} or \code{"SOM"}.
\item[\code{type, ...}] graphical parameters.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The class \code{"somgrid"} records the coordinates of the grid to be
used for (batch or on-line) SOM: this has a plot method.

The plot method for class \code{"SOM"} plots a \code{\LinkA{stars}{stars}}
plot of the representative at each grid point.
\end{Details}
\begin{Value}
For \code{somgrid}, an object of class \code{"somgrid"}, a list with
components
\begin{ldescription}
\item[\code{pts}] a two-column matrix giving locations for the grid points.
\item[\code{xdim, ydim, topo}] as in the arguments to \code{somgrid}.
\end{ldescription}
\end{Value}
\begin{References}\relax
Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{batchSOM}{batchSOM}}, \code{\LinkA{SOM}{SOM}}
\end{SeeAlso}

