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