[R] Heatmap problem

Jim Lemon jim at bitwrit.com.au
Thu Nov 22 11:21:15 CET 2007

affy snp wrote:
> Hi friends,
> I used heatmap(as.matrix(y2),col=rainbow(256),scale = "column") to
> generate the heatmap. But it did not show the code that which
> color correspond the value. Is there any parameter for this in
> heatmap()?
Hi Allen,
If you want colors corresponding to the values with a color legend, have 
a look at color2D.matplot in the plotrix package.


More information about the R-help mailing list