plot_distatis: DiSTATIS plot of posterior or bootstrap samples

Description Usage Arguments Value Examples

View source: R/plot_distatis.R

Description

DiSTATIS plot of posterior or bootstrap samples

Usage

1
2
3
4
5
6
7
8
plot_distatis(
  obj,
  ndraws = 1000,
  ncores = 1,
  show_donors = TRUE,
  show_markers = TRUE,
  repel = TRUE
)

Arguments

obj

Object of class cytoeffect_poisson or cytoeffect_poisson_mcle computed by poisson_lognormal or poisson_lognormal_mcle

ndraws

Number of posterior or bootstrap samples

ncores

Number of cores

show_donors

Include donor random effect

show_markers

Include markers

repel

Repel marker names

Value

ggplot2 object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
set.seed(1)
df = simulate_data()
str(df)
fit = poisson_lognormal(df,
                        protein_names = names(df)[3:ncol(df)],
                        condition = "condition",
                        group = "donor",
                        r_donor = 2,
                        warmup = 200, iter = 325, adapt_delta = 0.95,
                        num_chains = 1)
plot_distatis(fit, ndraws = 125)
fit = poisson_lognormal_mcle(df,
                             protein_names = names(df)[3:ncol(df)],
                             condition = "condition",
                             group = "donor",
                             ncores = 1)
plot_distatis(fit, ndraws = 125)

## End(Not run)

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