[R] Error in image.default(1:nc, 1:nr, x, xlim = 0.5 + c(0, nc), ylim = 0.5 + : must have one more break than colour

paul murima paul.murima at gmail.com
Mon Nov 17 17:01:29 CET 2008


heatmap.2(m, margins= c(9,9), col = bluered(64), trace=c("none"),
breaks=c(seq(-60,0,60/20)), symkey=TRUE, density.info="histogram",
cexRow=1,)
Error in image.default(1:nc, 1:nr, x, xlim = 0.5 + c(0, nc), ylim = 0.5 +  :
  must have one more break than colour

Hie all.

I am working on scaling my data into a fited range of -60 0 and 60,
with increases of 20.
when i use heatmap,2 the error messgae i get is as follows

heatmap.2(m, margins= c(9,9), col = bluered(64), trace=c("none"),
breaks=c(seq(-60,0,60/20)), symkey=TRUE, density.info="histogram",
cexRow=1,)

Error in image.default(1:nc, 1:nr, x, xlim = 0.5 + c(0, nc), ylim = 0.5 +  :
  must have one more break than colour

Can any one help on how i can get around this problem.
Your help is most appreciated.

Rockie



More information about the R-help mailing list