[R] color palette
Thomas Lumley
tlumley at u.washington.edu
Thu Aug 4 02:12:27 CEST 2005
On Wed, 3 Aug 2005, array chip wrote:
> 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?
>
?colorRampPalette
-thomas
More information about the R-help
mailing list