Learn R Programming

sjPlot (version 2.0.0)

sjc.elbow: Compute elbow values of a k-means cluster analysis

Description

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.

Usage

sjc.elbow(data, steps = 15, show.diff = FALSE)

Arguments

Examples

Run this code
# plot elbow values of mtcars dataset
sjc.elbow(mtcars)

Run the code above in your browser using DataLab