plot.cytoeffect_poisson_mcle: Plot point estimates for MCLE fit

Description Usage Arguments Value Examples

View source: R/plot.cytoeffect_poisson_mcle.R

Description

Plot point estimates for MCLE fit

Usage

1
2
## S3 method for class 'cytoeffect_poisson_mcle'
plot(x, type = "beta", selection = x$protein_names, ...)

Arguments

x

Object of class cytoeffect_poisson computed using poisson_lognormal

type

A string with the parameter to plot: type = "beta", type = "sigma", or type = "Cor"

selection

A vector of strings with a selection of protein names to plot

...

Other parameters

Value

ggplot2 object

Examples

1
2
3
4
5
6
7
8
9
set.seed(1)
df = simulate_data(n_cells = 10)
str(df)
fit = poisson_lognormal_mcle(df,
                             protein_names = names(df)[3:ncol(df)],
                             condition = "condition",
                             group = "donor",
                             ncores = 1)
plot(fit, type = "beta")

ChristofSeiler/cytoeffect documentation built on Nov. 24, 2020, 12:25 a.m.