Agustin Lobo
2011-Sep-16 12:31 UTC
[R] cutree() and rect.hclust(): different labelling of classes
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. Thanks Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) Lluis Sole Sabaris S/N 08028 Barcelona Spain Tel. +34 934095410 Fax. +34 934110012 email: Agustin.Lobo at ictja.csic.es
Rui Tian
2011-Sep-17 13:13 UTC
[R] cutree() and rect.hclust(): different labelling of classes
Hi, Agustin, I also encountered similar problems when cutting trees. However, I think one himself/ herself has to figure out the components of each cluster. The labels that are generated by the current packages simply only distinguish one cluster from another, but do not have more meanings. Rui On Fri, Sep 16, 2011 at 8:31 PM, Agustin Lobo <Agustin.Lobo@ictja.csic.es>wrote:> 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. > Thanks > Agus > > -- > Dr. Agustin Lobo > Institut de Ciencies de la Terra "Jaume Almera" (CSIC) > Lluis Sole Sabaris S/N > 08028 Barcelona > Spain > Tel. +34 934095410 > Fax. +34 934110012 > email: Agustin.Lobo@ictja.csic.es > > ______________________________**________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]