Re: [R] [BioC] two questions associated with heatmap

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Sat 23 Sep 2006 - 15:13:26 GMT

Weiwei Shi wrote:
> hi, there:
> i have 2 questions associated with heatmap
>
> in heatmap.2{gplot}, there is a bar called "raw z-score" showing the
> coloring legend for each pixel. Where can I find that z-score's
> formulae?
>
A Z-score is the mean of the group divided by the standard deviation.
> question 2,
> for example, I have 5 groups and I want to label each group with a
> color name from "#FF0000" to "#0000FF" evenly. so basically i need a
> vector like this:
> c("#FF0000", ?, ?, ?, "#0000FF")
>
You could look at RColorBrewer or geneplotter for some ideas on how to do this.

If you don't have a copy of the Bioconductor book, it may be a good idea to pick one up. It is quite helpful for getting started using bioconductor and gene expression data.

Hope this helps.
Sean



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat Sep 23 13:17:35 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 23 Sep 2006 - 04:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.