Search
Question: Heatmap error: 'ColSideColors' must be a character vector of length ncol(x)
0
gravatar for Rajesh
7 days ago by
Rajesh0
Rajesh0 wrote:

> library("gplots")
> heatmap.2(exprs(esetSel), col=topo.colors(75), scale="none", ColSideColors=patientcolors,
+           key=TRUE, symkey=FALSE, density.info="none", trace="none", cexRow=0.5)
Error in heatmap.2(exprs(esetSel), col = topo.colors(75), scale = "none",  : 
  'ColSideColors' must be a character vector of length ncol(x)

Kindly help me regarding above error during construction of heatmap.

Thanks

 

ADD COMMENTlink modified 7 days ago by Gordon Smyth29k • written 7 days ago by Rajesh0
2
gravatar for Gordon Smyth
7 days ago by
Gordon Smyth29k
Walter and Eliza Hall Institute of Medical Research, Melbourne, Australia
Gordon Smyth29k wrote:

Well, the error message seems to tell you what's wrong. Have you looked at 'patientcolors' to check it that contains what you think it does?

On another point, using topo.colors for an expression heatmap doesn't seem a good choice to me. Since you're apparently using the limma package, you could try:

coolmap(exprs(esetSel))
ADD COMMENTlink modified 7 days ago • written 7 days ago by Gordon Smyth29k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 167 users visited in the last hour