I am using ggdendrogram to construct a dendrogram based on Jaccard matrix. Is there a way to reverse the distance scale from 0 - 1 to 1 - 0 and to add text under the distance scale with ggdendrogram? Cheers.
Asked
Active
Viewed 69 times
0
-
To reverse you can `abs(DATA - 1)` – pogibas Nov 22 '19 at 08:04
-
I did try it, but it doesn't work – Irwan Lovadi Nov 25 '19 at 01:29
-
I am a bit late for the party, but maybe you can try something like `+ scale_y_reverse(breaks=seq(0,1,0.25))` for reversing the axis? And a simple `+ ylab("banana")` for the text? – Zoe Jul 28 '21 at 13:13