我正在使用R热包来制作交互式热图。我喜欢这个软件,但我想从它中得到与我使用的pheatmap包相同的集群(行和列的排序)。因此,我希望这两个命令产生相同的输出:
heatmaply (scale (mtcars))
pheatmap (scale (mtcars))有办法这样做吗?提前谢谢。阿图罗
最近,我问了另一个关于颜色输出的类似问题,即不分簇,输出,这个问题在这里得到了很好的回答:R heatmaply and pheatmap output
发布于 2020-05-25 20:44:24
下面是一个排序heatmaply列和行的解决方案,就像在pheatmap中一样
phtmap <- pheatmap(scale(mtcars))
heatmaply(scale(mtcars), Rowv=phtmap[[1]], Colv=phtmap[[2]], revC=TRUE)pheatmap的输出

和heatmaply的输出

https://stackoverflow.com/questions/61935135
复制相似问题