有没有一种方法可以使用heatmaply包中使用的树状图聚类方法,并将其应用于pheatmap包生成的热图?基本上与这里提出的问题相反:Clustering in pheatmap and heatmaply R packages 当我在pheatmap上使用heatmaply时,我通常会看到我的数据集群效果更好对于我来说,heatmaply::ggheatmap函数不能正常工作,因为我有col_side_colors,并且注释妨碍了树状图。它看起来就是很乱。所以我改用pheatmap。
我正在绘制一组15个样本,它们集中在A、B、C三组中,热图对它们进行排序,例如C、A、B (我读到这是因为它在右侧绘制了最相似的集群)。我想对集群进行排序,使集群的叶子被看作是A,B,C(因此重新组织了集群分支的顺序。有什么功能能帮我做到这一点吗?我所用的代码: color = colorRampPalette(c("bluecluster_cols=FAL
/e”then call this with pheatmap (annotation_row = df)...png
1
As an example of the above:
I want to add the annotation row labelling to a pheatmapIt appears from the tutorial here: https://towardsdatasci