[R] heatmap ordered list
Martin Maechler
maechler at stat.math.ethz.ch
Tue Oct 4 18:28:19 CEST 2005
>>>>> "Andrea" == Andrea Zangrando <andrea.zangrando at 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
More information about the R-help
mailing list