plot_scree_adpc_preselected {adproclus}R Documentation

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

Description

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.

Usage

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.

Value

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)

[Package adproclus version 2.0.0 Index]