View source: R/KmeansAutoElbow.R
ElbowFinder | R Documentation |
Perform Elbow method for the automatic estimation of the number of clusters.
ElbowFinder(x, y)
x |
: x-axis |
y |
: y-axis |
ElbowFinder return K number of groups according to Elbow method
K number of clusters obtained by Elbow method
https://stackoverflow.com/a/42810075
y <- c(824,248,32,28,26,19,20,20,17)
x <- 1:length(y)
K <- ElbowFinder(x,y)
plot(x,y,type='o')
abline(v=K,col="red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.