Re: [R] One question on heatmap

2010-11-03 Thread Jim Lemon
On 11/03/2010 02:50 AM, Hua wrote: ... When I try to make heatmap based on this gene expression value table, I found that, when I set 'scale' to 'column', the heatmap will be always be red. I think this is because, there's very large values in the matrix (gene Actb), while the most are just ve

Re: [R] One question on heatmap

2010-11-02 Thread Peter Langfelder
Before plotting a heatmap we usually standardize all genes to mean zero and variance 1. That way the green/red represent under/over expression with respect to the mean expression, which is roughly what the original 2-color arrays (that literally produced such heatmaps) were measuring. Of course, st

[R] One question on heatmap

2010-11-02 Thread Hua
Dear R-helper: Suppose we have a matrix: Genesample1 sample2 Gcnt112.52.8 Max 8.800039.1 Tmem176b 67.9000 304.7 Shmt2 8.600042.4 Rtn4 11.500057.7 Il17re7.600038.8 B