plot.cytoglm: Plot bootstraped coefficients

View source: R/plot.cytoglm.R

plot.cytoglmR Documentation

Plot bootstraped coefficients

Description

Plot bootstraped coefficients

Usage

## S3 method for class 'cytoglm'
plot(x, order = FALSE, separate = FALSE, ...)

Arguments

x

A cytoglm class

order

Order the markers according to the mangintute of the coefficients

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))
glm_fit <- CytoGLMM::cytoglm(df,
                             protein_names = protein_names,
                             condition = "condition",
                             group = "donor",
                             num_boot = 10) # in practice >=1000
plot(glm_fit)

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