loading...

Add a line (horizontal, vertical, or circular, depending on the dendrogram type) at height h to depict where it is cut into groups.

geom_dendroline(h, ...)

Arguments

h

The height to cut the dendrogram.

...

Further arguments passed to geom_hline() (this is really a convenience function that builds on it).

See also

Examples

SciViews::R
iris <- read("iris", package = "datasets")
iris_num <- iris[, -5]
iris_num %>.%
  dissimilarity(.) %>.%
  cluster(.) ->
  iris_cluster
chart(iris_cluster) +
  geom_dendroline(h = 3, color = "red")