Hi Srini,

does this do what you need it to?

heatmap.2(res1,cexRow = 0.28,cexCol=0.28,keysize=1,na.color=par
("bg"),densadj=0.25,
Colv=FALSE,col=colorpanel(n=99,low="blue",mid="white",high="yellow"),
breaks=c(seq(-7,0,length.out=50),seq(0,4,length.out=50)))

The big issue that I see here is that the distribution of the colors is
asymmetrical, and I'm not sure if that is acceptable or not.

Cheers,
Artur


On Thu, Mar 6, 2008 at 12:59 PM, Srinivas Iyyer <srini_iyyer_bio@yahoo.com>
wrote:

> Dear group,
> I am using heatmap.2 for heatmaps.
>
> heatmap.2(res1,cexRow = 0.28,cexCol=0.28
> ,col=rev(heat.colors(16)),keysize=1,na.color=par("bg"),densadj
> = 0.25,Colv=FALSE)
>
>
>
> I want to have a color key starting from blue to
> yellow through white.
>
> Say -7 is my min value and +4 is my max value.
>
> Values around 0 should be totally white.
>
> what kind of trick can do that for me. I will be very
> happy if I can do that.
>
> Any suggestions, please.
> thank you.
> srini
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

