我正在制作热图,但我无法将结果分配到变量中以在绘图前检查结果。Rstudio 自动绘制它。我想按热图的顺序获取行名列表。我不确定这是否可能。我正在使用这段代码:
hm <- heatmap.2( assay(vsd)[ topVarGenes, ], scale="row",
trace="none", dendrogram="both",
col = colorRampPalette( rev(brewer.pal(9, "RdBu")) )(255),
ColSideColors = c(Controle="gray", Col1.7G2="darkgreen", JG="blue", Mix="orange")[
colData(vsd)$condition ] )