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 Jan. 29, 2024, 10:24 a.m.