alpha_div_boxplot: Alpha diversity boxplot

Description Usage Arguments Value Examples

View source: R/alpha_div_boxplot.R

Description

Alpha diversity boxplot

Usage

1
2
3
4
5
6
alpha_div_boxplot(
  MAE,
  tax_level,
  condition,
  alpha_metric = c("inverse_simpson", "gini_simpson", "shannon", "fisher", "coverage")
)

Arguments

MAE

A multi-assay experiment object

tax_level

The taxon level used for organisms

condition

Which condition to group samples

alpha_metric

Which alpha diversity metric to use

Value

A plotly object

Examples

1
2
3
4
5
6
7
data_dir = system.file('extdata/MAE.rds', package = 'animalcules')
toy_data <- readRDS(data_dir)
p <- alpha_div_boxplot(toy_data,
                       tax_level = 'genus',
                       condition = 'DISEASE',
                       alpha_metric = 'shannon')
p

animalcules documentation built on Nov. 8, 2020, 6:47 p.m.