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 -- View this message in context: http://r.789695.n4.nabble.com/heatmap-with-symbols-tp4649472.html Sent from the R help mailing list archive at Nabble.com.
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 <furor1980@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]]