A MSnSet with spectral counts in the expression matrix.
do.plot
A logical indicating whether to plot the dendrograms.
facs
NULL, or a data frame with factors. See details below.
wait
This function may draw different plots, one by given factor in
facs. When in interactive mode the default is to wait for confirmation
before proceeding to the next plot. When wait is FALSE and R in
interactive mode, instructs not to wait for confirmation.
Value
Invisibly returns the the value obtained from hclust.
Details
The hierarchical clustering is done by means of hclust with default parameters.
If do.plot is TRUE, a dendrogram is plotted for each factor, with branches colored as per factor level. If facs is NULL then the factors are taken
from pData(msnset).