[R] Heatmap/Color Selection(Key)

Eik Vettorazzi E.Vettorazzi at uke.uni-hamburg.de
Mon Oct 11 17:09:57 CEST 2010


sorry, typo:

> heatmap.2(x,col=colorRampPalette(c("blue","lightblue","darkgray","darkgray","yellow","red"),space="Lab"),at=c(-6.01,6.01,51))
> heatmap.2(x,col=c("blue","lightblue","darkgray","black","darkgray","yellow","red"),at=-3:3*2)


should be read as

heatmap.2(x,col=colorRampPalette(c("blue","lightblue","darkgray","darkgray","yellow","red")),breaks=seq(-6.01,6.01,length.out=51))
heatmap.2(x,col=c("blue","lightblue","darkgray","darkgray","yellow","red"),breaks=-3:3*2)

"at" from stats:heatmap became "breaks" in gplots:heatmap.2



More information about the R-help mailing list