Entering edit mode
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