Re: [R] heatmap color distribution

From: Wiener, Matthew <matthew_wiener_at_merck.com>
Date: Fri 22 Jul 2005 - 00:09:32 EST


You can use the "breaks" argument in image to do this. (You don't specify a function you're using, but other heatmap functions probably have a similar parameter.) Look across all your data, figure out the ranges you want to have different colors, and specify the appropriate break points in each call to image. Then you're using the same color set in each one. You run the risk, of course, that some of your images will have a very narrow color range, which might obscure interesting features. But nothing stops you from making more than one plot.

Hope this helps.

Regards,

Matt Wiener

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Jacob Michaelson Sent: Thursday, July 21, 2005 9:26 AM
To: r-help@stat.math.ethz.ch
Subject: [R] heatmap color distribution

Hi all,

I've got a set of gene expression data, and I'm plotting several heatmaps for subsets of the whole set. I'd like the heatmaps to have the same color distribution, so that comparisons may be made (roughly) across heatmaps; this would require that the color distribution and distance functions be based on the entire dataset, rather than on individual subsets. Does anyone know how to do this?

Thanks in advance,

Jake



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

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 Fri Jul 22 00:32:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:54 EST