【发布时间】:2017-05-24 11:29:38
【问题描述】:
我正在尝试使用以下代码进行无偏见的层次聚类
col.cell <- c("purple","orange", "green", "blue")[sampleinf$subtype]
heatmap.2(as.matrix(hm3),col=rev(morecols(50)),trace="none", main="Top 500 most variable genes across samples",ColSideColors=col.cell,scale="row")
legend("topright",
legend = unique(sampleinf$subtype),
col = col.cell,
lty= 1.5, lwd = 2,
cex=.6)
如何使颜色图例更明显。现在它与树状图叠加。
【问题讨论】: