Relative Content

Tag Archive for rggplot2dendrogramdendextend

as.ggplot in dendextend does not leave enough room for leaf labels

I’ve been using ggplot2 for automated report generation, and had been using ggdendro for accompanying dendrograms. However, as ggdendro seem to no longer be actively supported and I encountered this bug, I am trying to move over to dendextend. However, there is inconsistency between the base graphics output (with dendextend loaded) and the ggplot2 version, with respect to the leaf labels. The ggplot2 output does not reserve enough space for the leaf labels, whereas the base plot and ggdendro versions do.