[R] Questions about 'heatmap.2' function

From: karena <dr.jzhou_at_gmail.com>
Date: Tue, 26 Apr 2011 13:06:34 -0700 (PDT)

I am trying a heatmap.

I have 30 individuals and 1,000 genes.

Some components I want for this heatmap plot: (1) the 'color-key'; (2) a banner across the top to emphasize how the hierarchical clustering has correctly split the data into the two groups;

I use the 'heatmap.2' function in the 'gplots' package, and my function is as below:

heatmap.2(data, scale="column", key=TRUE, trace="none", xlab="individuals", ylab="genes", main="heatmap", density.info="histogram", col=redblue) dev.off()

I have two problems now:
1) I don't know how to use the 'ColSideColors' option to emphasize the 'groups' rather than 'each individuals'. 2) When I only included 100 genes in my heatmap, I had no problems getting the 'color-key'; However, when I included more genes (i.e., 300 genes), I can NOT get the 'color-key' any more, even that all the options are exactly the same), and the error message I got is :

"Error in image.default(z = matrix(z, ncol = 1), col = col, breaks = tmpbreaks, :
  breaks must all be finite"

Can anyone help me on this?

thank you very much!


View this message in context: http://r.789695.n4.nabble.com/Questions-about-heatmap-2-function-tp3476387p3476387.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 26 Apr 2011 - 20:23:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Apr 2011 - 20:30:33 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.

list of date sections of archive