best.cutree | R Documentation |
This function calculates the best partition to cut a dendrogram based on
the higher relative loss of inertia criteria. This criteria was originaly
proposed by the HCPC
function of the package
FactoMineR
.
best.cutree(hc, min = 3, max = 20, loss = FALSE, graph = FALSE, ...)
hc |
a clustering tree (an object of class |
min |
the minimum number of classes |
max |
the maximum number of classes |
loss |
if |
graph |
if |
... |
additional arguments sent to |
HCPC
hc <- hclust(dist(USArrests), "ave")
best.cutree(hc)
best.cutree(hc, loss = TRUE)
best.cutree(hc, graph = TRUE)
best.cutree(hc, graph = TRUE, min = 6, max = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.