Skip to contents

A 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.

Usage

dendro_ggplot(data, ...)

Arguments

data

A ggdend object created by dendextend::as.ggdend().

...

Additional arguments passed to ggplot.

Value

A ggplot object.

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")