plot_model_selection: Plot model selection to choose number optimal number of...

View source: R/plot_model_selection.R

plot_model_selectionR Documentation

Plot model selection to choose number optimal number of clusters

Description

Plot model selection to choose number optimal number of clusters

Usage

plot_model_selection(fit, k = NULL)

Arguments

fit

A cytoflexmix class

k

Number of clusters

Value

cowplot object

Examples

set.seed(23)
df <- generate_data()
protein_names <- names(df)[3:12]
df <- dplyr::mutate_at(df, protein_names, function(x) asinh(x/5))
mix_fit <- CytoGLMM::cytoflexmix(df,
                                 protein_names = protein_names,
                                 condition = "condition",
                                 group = "donor",
                                 ks = 1:2)
plot_model_selection(mix_fit)

ChristofSeiler/CytoGLMM documentation built on April 21, 2023, 3:38 a.m.