View source: R/visualization.R
| plot_elbow | R Documentation |
Plot total within-cluster sum of squares vs number of clusters
plot_elbow(wss_data, add_line = FALSE, suggested_k = NULL)
wss_data |
A tibble with columns k and tot_withinss (from calc_wss) |
add_line |
Add vertical line at suggested optimal k? (default: FALSE) |
suggested_k |
If add_line=TRUE, which k to highlight |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.