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@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.