Use the col= argument to the heatmap() function to specify the three colors you want. For example: x <- matrix(rnorm(50), ncol=5) heatmap(x, col=1:3)
Jean furor <furor1...@gmail.com> wrote on 11/14/2012 03:31:42 AM: > > Hi all, > > I've made a heatmap using '-', '=' and '+' as possible values. However, the > heatmap itself shows more than three colors. How to avoid this? > > Thanks in advance. > > regards [[alternative HTML version deleted]] ______________________________________________ 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.