kmeans_plot: k-means Diagnostic Plot

Description Usage Arguments See Also Examples

View source: R/misc.R

Description

Using kmeans, plot percentage variance explained vs. number of clusters. Used as a means of picking k.

Usage

1
kmeans_plot(dat, nmax = 20, ...)

Arguments

dat

numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns).

nmax

maximum number of clusters to examine

...

optional arguments passed to xyplot

See Also

kmeans

Examples

1
2

kevinushey/Kmisc documentation built on May 20, 2019, 9:08 a.m.