\HeaderA{heatmapsM}{Function to plot heatmaps separating groups generated by SOM or
k-means}{heatmapsM}
\keyword{hplot}{heatmapsM}
\begin{Description}\relax
This function display individual heatmaps for each group constructed
by divisive clustering techniques, like SOM or k-means. It is possible
to add hierarchical dendrograms to each group individually.
\end{Description}
\begin{Usage}
\begin{verbatim}
heatmapsM(data, groups, sampleT=NULL, doHier=FALSE, distfun=dist,
          hclustfun=hclust, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{data}] numeric matrix to be displayed, including all observations
from all groups.
\item[\code{groups}] numeric or character vector (with length equal to
columns or rows of data) with identification of the groups to be
separated. If numeric must contain the indexes and if character must
contain the colnames or rownames.
\item[\code{sampleT}] list with 2 vectors, the first one specifying the first
character of each sample label to be coloured according to the colours
specified in the second vector.
\item[\code{doHier}] logical indicating to plot or not the hierarchical
branch in the other dimension of the matrix.
\item[\code{distfun}] the function to be used for distance calculation.
\item[\code{hclustfun}] the function for to be used for hierarchical cluster
calculation.
\item[\code{...}] additional parameters for \code{\LinkA{image}{image}} function.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is used internally by the functions
\code{\LinkA{hierM}{hierM}}, \code{\LinkA{somM}{somM}} and
\code{\LinkA{kmeansM}{kmeansM}}. If you want to the hierarchical dendrogram in the
other dimension, pay attention to the number of observations in this
dimension, because the calculation of the hierarchical branch may be
very time consuming!
\end{Details}
\begin{Value}
This function display the heatmaps and don't return any object or value.
\end{Value}
\begin{Author}\relax
Elier B. Cristo, addapted by Gustavo H. Esteves <\email{gesteves@vision.ime.usp.br}>
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{hierM}{hierM}}, \code{\LinkA{somM}{somM}}, \code{\LinkA{kmeansM}{kmeansM}}
\end{SeeAlso}

