Re: [R] heatmap ordered list

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Wed 05 Oct 2005 - 02:28:19 EST

>>>>> "Andrea" == Andrea Zangrando <andrea.zangrando@unipd.it>
>>>>> on Tue, 04 Oct 2005 15:00:27 +0200 writes:

    Andrea> Hi,
    Andrea> another problem on heatmaps... after generating the graph with

    Andrea> myBlRd <- colorRampPalette(c("blue", "red"))     Andrea> heatmap(dataHeat[Top100, ], col=myBlRd(15))

    Andrea> i need to retrieve the row names' list ordered by the dendrogram.
    Andrea> I tried with   "rownames(data)[Top100]"   but the list is not ordered 
    Andrea> (as i can see in the generated picture). Any tips?

Main tip :  do read the help page for functions you are using.
2nd tip : There's a section called "Value:" 3rd tip : hence use

            r <- heatmap(...) ## and work with 'r'

Regards,
Martin Maechler, ETH Zurich



R-help@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 Received on Wed Oct 05 02:40:36 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:17:49 EST