Question: metagenomeSeq heatmap error
0
gravatar for PJ
4.4 years ago by
PJ0
United States
PJ0 wrote:

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 • 603 views
ADD COMMENTlink written 4.4 years ago by PJ0
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: 210 users visited in the last hour