Re: [R] breaks argument in heatmap.2 doesn't do what it should I think

2013-08-06 Thread Adams, Jean
If you look at the help for heatmap.2 (in the gplots package) you will see the following explanation for breaks # mapping data to colors breaks, symbreaks=min(x < 0, na.rm=TRUE) || scale!="none", If you run your code with the second call to the heatmap.2() functio

[R] breaks argument in heatmap.2 doesn't do what it should I think

2013-08-06 Thread Witold E Wolski
I do set the breaks parameter in heatmap.2 I would expect that the color.key and the histogram (the thing in the top left of the plot) are aligned. Just that everyone can reproduce the problem: mypalette<-brewer.pal(11,"RdYlBu") ddd <- rnorm(400,0,0.1) mdd <- matrix(ddd,ncol=50) hm <- heatmap.2(m