Re: [R] color palette

From: Tuszynski, Jaroslaw W. <>
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



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

-----Original Message-----
[] On Behalf Of array chip Sent: Wednesday, August 03, 2005 8:03 PM To:
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 mailing list PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! 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