[BioC] heatmap colours

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Mon May 12 10:26:28 MEST 2003


Try this:

# Red for down regulated, green for upregulated.
redgreen <- function(n)
  {
    c(
      hsv(h=0/6, v=seq(1,0,length=n/2) ),
      hsv(h=2/6, v=seq(0,1,length=n/2) ),
      )
  }


Use as:

heatmap( datamat, col=redgreen(20) )

-Greg

> -----Original Message-----
> From: Stephen Henderson [mailto:s.henderson at ucl.ac.uk]
> Sent: Monday, May 12, 2003 7:50 AM
> To: 'bioconductor at stat.math.ethz.ch'
> Subject: [BioC] heatmap colours
> 
> 
> I have been using the new heatmap() function of the mva 
> library to look at
> gene expression data (thanks to D. Murdoch). I can't find a 
> suitable color
> palette with R or RColorBrewer. So has anyone created a 
> Red-Black-Green, or
> Red-Black-Blue palette they might like to share?
> 
> Yours Hopefully
> Stephen 
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential 
> an... {{dropped}}
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor
> 


LEGAL NOTICE\ Unless expressly stated otherwise, this message is... {{dropped}}



More information about the Bioconductor mailing list