Re: [R] color palette

From: Tuszynski, Jaroslaw W. <JAROSLAW.W.TUSZYNSKI_at_saic.com>
Date: Thu 04 Aug 2005 - 21:33:01 EST


'Tim.colors' in 'fields' package goes from blue to red, and passes through
the colors cyan, yellow, and orange. Also known as Jet color-map in Matlab. You can also easily design your own color map using 'rgb' function from
'gdDevices'.

Jarek

====================================================\=======

 Jarek Tuszynski, PhD.                           o / \ 
 Science Applications International Corporation  <\__,|  
 (703) 676-4192                                   ">   \
 Jaroslaw.W.Tuszynski@saic.com                     `    \



-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of array chip Sent: Wednesday, August 03, 2005 8:03 PM To: r-help@stat.math.ethz.ch
Subject: [R] color palette

Hi, I have a matrix with both positive and negative numbers, I would like to use image() to draw a heatmap. How can I can design a palette (or is there a function already available) that treat negative numbers in a blue gradient and positive numbers in a red gradient and treat 0 as white?

Thanks



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 Thu Aug 04 21:38:19 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:04:02 EST