在WGCNA中,我需要用基因表达数据中的表型颜色绘制样品树状图,以检查异常值。
我有以下代码:
par(mfrow=c(1,1), cex = 0.6, mar = c(0,4,2,0))
plotDendroAndColors(sampleTree2, phenoColors,groupLabels = colnames(pDat.sub),main = "Sample dendrogram and trait heatmap")
我收到错误:
plotOrderedColors出错(dendro $ order,colors = colors,rowLabels = rowLabels,:错误:颜色长度与矢量不兼容 “'”中的对象数量。
有人能帮助我吗?
我不知道这个错误的可能原因是什么。