with greenred, I get red and black and with redgreen, I get green and black. I wonder if I could have the same colors as TreeView or MapleTree.

Artur Veloso <abveloso@gmail.com> wrote: Hi Carol,

on the library "gplots" there is a function called "greenred" that should do what I think you want to do.
Use col=greenred(50) and see if it works out fine.

Cheers,

Artur 

On 8/1/07, carol white <wht_crl@yahoo.com> wrote: 
with col=colorRampPalette(c("red","black","green"))(256), green is replaced by black and red by green, hence, red doesn't appear any more
 At 01:18 PM 8/1/2007, carol white wrote:
  thanks for your quick reply.

 I am looking to get something closer to what is in gene expression papers like  http://rana.lbl.gov/papers/Eisen_PNAS_1998.pdf  even though that they use other clustering tools like TreeView. If I could get almost the same red and green, it woudl be good. in this heatmaps, black shows missing values or no gene expression. So I don't know how to integrate this. 
 Try col=colorRampPalette(c("red","black","green"))(256)

 Best,
 Jenny



 Best

 Jenny Drnevich <drnevich@uiuc.edu> wrote: 

   Hi Carol,


   R has 657 colors by name (see colors() ), but I don't know if there is an easy way to look through them to see which of the red and green options give the hues you want. However, I would caution you against using a red/green scheme. I know it's used because the dye colors for 2-color arrays are red and green, but for display purposes red/green is a BAD choice because 10% of males are red-green color blind. 


   Jenny


   At 12:42 PM 8/1/2007, carol white wrote:

   Hi,

   Regarding heatmap, I would like to display the colors in green and red. Is setting the parameter col in heatmap to col=colorRampPalette(c("red","green"))(256) the best solution? green seems to be tense and red seems to be dull (see attached). 



   Another solution would have been to use brewer.pal in RColorBrewer package but I didn't find any name with only red and green option for brewer.pal.


   any suggestion is welcome.


    thanks


   carol



   Building a website is a piece of cake.


   Jenny Drnevich, Ph.D.


   Functional Genomics Bioinformatics Specialist

   W.M. Keck Center for Comparative and Functional Genomics 

   Roy J. Carver Biotechnology Center

   University of Illinois, Urbana-Champaign


   330 ERML

   1201 W. Gregory Dr.

   Urbana, IL 61801

   USA


   ph: 217-244-7355 

   fax: 217-265-5066

   e-mail: drnevich@uiuc.edu



 Looking for a deal?  Find great prices on flights and hotels with Yahoo! FareChase.


--------------------------------- 
Pinpoint customers who are looking for what you sell.
        [[alternative HTML version deleted]]

_______________________________________________
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


 

       
---------------------------------
Pinpoint customers who are looking for what you sell. 
	[[alternative HTML version deleted]]

