relabu_boxplot: Plot boxplots comparing different organism prevalence across...

Description Usage Arguments Value Examples

View source: R/relabu_boxplot.R

Description

Plot boxplots comparing different organism prevalence across conditions

Usage

1
2
3
4
5
6
7
relabu_boxplot(
  MAE,
  tax_level,
  condition,
  organisms = c(),
  datatype = c("counts", "relative abundance", "logcpm")
)

Arguments

MAE

A multi-assay experiment object

tax_level

The taxon level used for organisms

condition

Compare groups by condition e.g. 'SEX'

organisms

Include organisms for plotting.

datatype

counts, relative abundance,logcpm

Value

A plotly object

Examples

1
2
3
4
5
6
7
8
data_dir = system.file('extdata/MAE.rds', package = 'animalcules')
toy_data <- readRDS(data_dir)
p <- relabu_boxplot(toy_data,
                    tax_level='genus',
                    organisms=c('Escherichia', 'Actinomyces'),
                    condition='SEX',
                    datatype='logcpm')
p

hiplot/animalcules documentation built on March 1, 2021, 12:04 a.m.