[R] color palette

array chip arrayprofile at yahoo.com
Thu Aug 4 02:03:05 CEST 2005


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




More information about the R-help mailing list