plot.cytoflexmix: Plot all components of mixture regression

View source: R/plot.cytoflexmix.R

plot.cytoflexmixR Documentation

Plot all components of mixture regression

Description

Plot all components of mixture regression

Usage

## S3 method for class 'cytoflexmix'
plot(x, k = NULL, separate = FALSE, ...)

Arguments

x

A cytoflexmix class

k

Number of clusters

separate

create two separate ggplot2 objects

...

Other parameters

Value

ggplot2 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 = 2)
plot(mix_fit)

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