metagenomeSeq heatmap error
0
0
Entering edit mode
PJ • 0
@pj-8012
Last seen 7.3 years ago
United States

Hi, 

I am creating a heat map based on the following script:

trials=pData(object)$treatment

heatmapColColors=brewer.pal(12, "Set3")[as.integer(factor(trials))] heatmapCols=colorRampPalette(brewer.pal(9, "RdBu"))(50)

plotMRheatmap(obj=object, n=6, cexRow=0.4, cexCol=0.4, trace="none", col=heatmapCols, ColSideColors=heatmapColColors)

But I am havig the following message: Error in heatmap.2(mat2, ...) : 
  'ColSideColors' must be a character vector of length ncol(x)

 

I understand the concept but I do not know how to fix it. Thanks!

PJ

 

heatmap • 971 views
ADD COMMENT

Login before adding your answer.

Traffic: 1080 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