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, ...)
The height to cut the dendrogram.
Further arguments passed to geom_hline()
(this is really a convenience function that builds on it).
SciViews::R
#> Error in globalCallingHandlers(error = function (cnd) rlang::entrace(cnd)): should not be called with handlers on the stack
iris <- read("iris", package = "datasets")
#> Error in read("iris", package = "datasets"): could not find function "read"
iris_num <- iris[, -5]
iris_num %>.%
dissimilarity(.) %>.%
cluster(.) ->
iris_cluster
#> Error in iris_num %>.% dissimilarity(.) %>.% cluster(.): could not find function "%>.%"
chart(iris_cluster) +
geom_dendroline(h = 3, color = "red")
#> Error: object 'iris_cluster' not found