make_kmeans_gaps_plot: Make a plot of k-means gaps.

View source: R/clustering.R

make_kmeans_gaps_plotR Documentation

Make a plot of k-means gaps.

Description

For more details see this chapter in OSCA.

Usage

make_kmeans_gaps_plot(kmeans_gaps, best_k)

Arguments

kmeans_gaps

An output from cluster::clusGap().

best_k

A numeric scalar: best k for k-means calculated by cluster::maxSE().

Value

A ggplot object.


bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.