
Create a dendrogram ggplot with suppressed deprecation warnings
Source:R/theme_dendro.R
dendro_ggplot.RdA convenience wrapper around ggplot for
dendrogram objects created with dendextend. Suppresses the
ggplot2 deprecation warning for the size aesthetic
that dendextend uses internally for line widths.
Arguments
- data
A
ggdendobject created bydendextend::as.ggdend().- ...
Additional arguments passed to
ggplot.
Examples
hc <- hclust(dist(USArrests[1:5, ]))
dend <- as.dendrogram(hc)
ggd <- dendextend::as.ggdend(dend)
dendro_ggplot(ggd, horiz = TRUE) +
theme_dendro(height_title = "Height")