[BioC] heatmap colours
Jean Yee Hwa Yang
jean at biostat.ucsf.edu
Mon May 12 11:31:59 MEST 2003
Hi Stephen,
Try the maPalette function in marrayPlots. You can create many different
color palettes by specifying the low, and high end of the color.
See help(maPalette) for more details
## Red -- Black -- Green
rbg <- maPalette(low="green", high="red", mid="black")
heatmap(data, col=rbg)
## Red -- white -- Green
rwg <- maPalette(low="green", high="red", mid="white")
heatmap(data, col=rwg)
## blue--yellow
by <- maPalette(low="blue", high="yellow")
heatmap(data, col=by)
Cheers
Jean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jean Yee Hwa Yang jean at biostat.ucsf.edu
Division of Biostatistics, Tel: (415) 476-3368
University of California, Fax: (415) 476-6014
500 Parnassus Avenue, MU 420-W, San Francisco, CA 94143-0560
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Mon, 12 May 2003, Stephen Henderson wrote:
> 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
>
More information about the Bioconductor
mailing list