Is there a way of using the dendrogram clustering method used in the heatmaply package and to apply it to a heatmap produced by the pheatmap package? Basically the opposite to what was asked here: Clustering in pheatmap and heatmaply R packages
I usually see better clustering of my data when I use heatmaply over pheatmap. However, I do not always want to use an interactive plot. The heatmaply::ggheatmap function does not work properly for me since I have have col_side_colors and the annotation gets in the way of the dendrogram. It just looks very messy. So I use pheatmap instead.
Maybe someone can help with my question. Thanks!
The output of
heatmaplyand the output of
pheatmap