[R] cutree() and rect.hclust(): different labelling of classes

Agustin Lobo Agustin.Lobo at ictja.csic.es
Fri Sep 16 14:31:26 CEST 2011

I've found that while cutree() and rect.hclust() make the same classes
for a given height in the dendrogram, the actual labeling of the classes 
is different. For example, both produce the same 4 classes but
class 1 according to cutree() is class 4 according to rect.hclust().
Would it be possible that future versions provide the same labeling?
rect.hclust() is useful to display the classes over the dendrogram but
the output from cutree() is often more handy.

Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
Lluis Sole Sabaris S/N
08028 Barcelona
Tel. +34 934095410
Fax. +34 934110012
email: Agustin.Lobo at ictja.csic.es

More information about the R-help mailing list