Skip to contents

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.