Search
Question: Heatmap error: 'ColSideColors' must be a character vector of length ncol(x)
0
gravatar for rkp
17 months ago by
rkp0
rkp0 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 17 months ago by Gordon Smyth33k • written 17 months ago by rkp0
2
gravatar for Gordon Smyth
17 months ago by
Gordon Smyth33k
Walter and Eliza Hall Institute of Medical Research, Melbourne, Australia
Gordon Smyth33k 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 17 months ago • written 17 months ago by Gordon Smyth33k
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: 423 users visited in the last hour