[R] set heatmap.2 color ranges

Wendy wendy2.qiao at gmail.com
Mon Feb 27 17:26:56 CET 2012


Hi all, 

I have a matrix with values between 0 and 1. I want to plot this matrix on a
heat map so anything >0.05 is blue, anything <=0.05 and >0.01 is yellow, and
anything else is grey. I am using the heatmap.2 function. I searched around
but did not find an efficient way to set colour ranges as I described. Could
anybody give some hints? Thank you in advance. 

Wendy

--
View this message in context: http://r.789695.n4.nabble.com/set-heatmap-2-color-ranges-tp4425166p4425166.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list