pneuvial / adjclust

Adjacency-constrained hierarchical clustering of a similarity matrix
https://pneuvial.github.io/adjclust/
16 stars 8 forks source link

Color scale and borders in plotSim heatmaps #37

Closed pneuvial closed 1 year ago

pneuvial commented 6 years ago

In the heatmaps generated by plotSim the most distant pairs of data points are plotted in white, which can make the heatmap look incomplete. This is only a problem for very small examples, e.g.

set.seed(0xBEEF)
X <- matrix(rnorm(100), 5, 20)
D <- dist(X)
plotSim(D, type = "dissimilarity")

Suggestions

tuxette commented 1 year ago

second suggestion addressed starting from commit 9383f3ffa0f9175a0a56c1855a5efae6ab8359b1, where heat.colors has been replace by the default palette of ggplot2::scale_fill_gradient (investigate better choices?)