Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Young1
Posts:
2
Registered:
11/24/09


CLustergram for heatmap in MATALB
Posted:
Nov 24, 2009 8:05 PM


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



