Question: Heatmap error: 'ColSideColors' must be a character vector of length ncol(x)
0
gravatar for rkp
2.9 years 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

 

microarray limma bioconductor • 1.7k views
ADD COMMENTlink modified 2.9 years ago by Gordon Smyth39k • written 2.9 years ago by rkp0
Answer: Heatmap error: 'ColSideColors' must be a character vector of length ncol(x)
2
gravatar for Gordon Smyth
2.9 years ago by
Gordon Smyth39k
Walter and Eliza Hall Institute of Medical Research, Melbourne, Australia
Gordon Smyth39k 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 2.9 years ago • written 2.9 years ago by Gordon Smyth39k
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 16.09
Traffic: 143 users visited in the last hour