Try Heatmap.2 in the gplots package.
BW,
Marco
-----Oorspronkelijk bericht-----
Van: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
Namens Jim Lemon
Verzonden: donderdag 22 november 2007 11:21
Aan: affy snp
CC: r-help at r-project.org
Onderwerp: Re: [R] Heatmap problem
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.
Jim
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.