View source: R/clusterer_farm.R
cut_dendrogram | R Documentation |
Cut a dendrogram in context
cut_dendrogram(dend, threshold)
dend |
A single dendrogram. |
threshold |
A mininum tallest branch value. |
The number of clusters is determined to be 1 if the tallest branch of the dendrogram is less than the threshold, or if the index of dispersion (standard deviation squared divided by mean) of the branch heights is below 0.015. Otherwise, we cut at the longest branch of the dendrogram to determine the number of clusters.
A named vector whose names are data point names and whose values are cluster labels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.