Heatmap error: 'ColSideColors' must be a character vector of length ncol(x)
1
0
Entering edit mode
rkp • 0
@rkp-10175
Last seen 6.2 years ago

> 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 • 3.5k views
ADD COMMENT
2
Entering edit mode
@gordon-smyth
Last seen 5 hours ago
WEHI, Melbourne, Australia

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 COMMENT

Login before adding your answer.

Traffic: 741 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6