Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: CLustergram for heatmap in MATALB
Replies: 2   Last Post: Nov 28, 2009 2:42 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Young1

Posts: 2
Registered: 11/24/09
CLustergram for heatmap in MATALB
Posted: Nov 24, 2009 8:05 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.