sjc.elbow.Rd
Plot elbow values of a k-means cluster analysis. This function computes a k-means cluster analysis on the provided data frame and produces two plots: one with the different elbow values and a second plot that maps the differences between each "step" (i.e. between elbow values) on the y-axis. An increase in the second plot may indicate the elbow criterion.
sjc.elbow(data, steps = 15, show.diff = FALSE)
data | data frame containing all variables that should be used for determining the elbow criteria |
---|---|
steps | maximum group-count for the k-means cluster analysis for
which the elbow-criterion should be displayed. Default is |
show.diff | logical, if |
# plot elbow values of mtcars dataset sjc.elbow(mtcars)