| plot_elbow | R Documentation |
Uses within-cluster sum of squares (WSS) to help determine the optimal number of clusters.
plot_elbow(data)
data |
A numeric matrix or data frame for clustering. |
A ggplot object showing the elbow plot.
data <- scale(iris[, 1:4])
if (interactive()) {
plot_elbow(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.