raivokolde / pheatmap

Pretty heatmaps
225 stars 83 forks source link

feature suggestion: plot only diagonal #101

Open mauritsunkel opened 4 months ago

mauritsunkel commented 4 months ago

Hi,

For plotting mirrored similarity matrices, it would be nice to be able to plot only half, i.e. the diagonal. Because of wanting to cluster as well, if you would set some values to NA in the input_matrix the internal hclust() call on dist(input_matrix) would error because of NA values.

I love pheatmap, it would be silly to need another package just for this.