Re: [R] heatmap

From: <vincent_at_7d4.com>
Date: Mon 03 Oct 2005 - 22:41:41 EST

Andrea Zangrando a écrit :

> ... and I wish to change the gradation of colors
> from blue to red, how could i do?

Hello,
here's how I build such a palette.

a = 15;

palwhiteblue = rgb(a:0, a:0, a, max=a);
palredwhite  = rgb(a, 0:a, 0:a, max=a);
palwhite     = rep(rgb(1,1,1), 8);
palRWB       = c(palredwhite, palwhite, palwhiteblue);

of course, to adapt to your own uses.
hih
Vincent



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 Mon Oct 03 22:43:33 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:09:43 EST