plot_scree_adpc_preselected function

Scree plot of a pre-selection of low dimensional ADPROCLUS models

Scree plot of a pre-selection of low dimensional ADPROCLUS models

To be used when one has selected a number of components for each number of clusters. Plots the remaining sets of models to compare SSE or unexplained variances. The input model_fit is supposed to be the output from the select_by_CHull function applied to the output from the mselect_adproclus_low_dim function.

plot_scree_adpc_preselected(model_fit, title = NULL, digits = 3)

Arguments

  • model_fit: Matrix with SSE or unexplained variance values. Can be obtained from select_by_CHull.
  • title: String. Optional title.
  • digits: Integer. The number of decimal places to display.

Returns

Returns the ggplot2 object.

Examples

# Loading a test dataset into the global environment x <- stackloss # Estimating models with cluster parameter values ranging from 1 to 4 # and component parameter values also ranging from 1 to 4 model_fits <- mselect_adproclus_low_dim(data = x, 1, 4, 1, 4, seed = 1) # Choosing for each number of cluster the best number of components model_fits_preselected <- select_by_CHull(model_fits) # Plot the results as a scree plot to select the appropriate number of clusters plot_scree_adpc_preselected(model_fits_preselected)
  • Maintainer: Henry Heppe
  • License: GPL (>= 3)
  • Last published: 2024-08-17