[R] using cutree() to figure out the heatmap cluster labels on the left

From: Andrew Yee <andrewjyee_at_gmail.com>
Date: Sun, 27 May 2007 22:15:55 -0400


I've been using heatmap(), hclust(), and cutree(), and I'm trying to figure out the column labels of the left (as opposed to the right) cluster.

Using cutree(x, k=2), I get two clusters labeled 1 and 2. How do you figure out if cluster 2 is the one associated with the left cluster on the heatmap (instead of manually going to the heatmap)?

Thanks,
Andrew

Andrew Yee, MD
MGH Cancer Center

        [[alternative HTML version deleted]]



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 May 2007 - 09:17:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 May 2007 - 10:31:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.