|
Young1 <xgeneral57@gmail.com> wrote in message <1309828473.32039.1259111156945.JavaMail.root@gallium.mathforum.org>...
> I am trying to use the clustergram command of MATLAB to plot a heat map of a set of data stored in a matrix X. The default colormap is redgreencmap, in which red represents values above the mean, black represents the mean, and green represents values below the mean of a row (gene) across all columns (samples).However, I want to assign these colors not based on the mean of each row, but based on if they are greater than or less than zero, i.e.:
> red: if the values are greater than zero
> green: if the values are less than zero
> black: if the value is zero.
> (The mean can be anything)
> Is there any way of doing that?
> Thanks
You can look up the 'Standardize' option in the clustergram function and set the option to 'None' or 3. Also make sure the Symmetric option is set to TRUE. The colormap will be centered around ZERO.
Also if you have Bioinfomatics Toolbox version 3.4 (R2009B), you can use the function HeatMap for your plot, by default the 'Standardize' option is 'None', and without dendrograms.
Thanks,
|