Skip to contents

This function is a wrapper around the factoextra::fviz_mclust_bic() function to plot the Bayesian Information Criterion (BIC) scores of Gaussian Mixture Models (GMM) fitted to a dataset. It is mainly designed to facilitate the setting of various default options that fit the graphical style of the project.

Usage

plot_clusters_bic(
  mclust_object,
  txt_big = 7,
  txt_mid = 6,
  txt_smol = 5,
  size = 0.2
)

Arguments

mclust_object

A fitted Mclust object containing the clustering results, usually from cluster_selected_vars().

txt_big

Size of the plot, x-axis and legend titles. Default is 7.

txt_mid

Size of the legend text. Default is 6.

txt_smol

Size of the axis text. Default is 5.

size

Size of the points in the plot. Default is 0.2.

Value

A ggplot2 object containing the BIC plot.

Examples

study_data |> cluster_selected_vars() |> plot_clusters_bic()