mbecBoxPlot: Variability boxes plotting function

Description Usage Arguments Value Examples

View source: R/mbecs_plots.R

Description

Takes data.frame from mbecBox and produces a ggplot2 object.

Usage

1
mbecBoxPlot(tmp, otu.idx, model.var)

Arguments

tmp

Count of selected features.

otu.idx

Index of selected Otus in the data.

model.var

Which covariate to group Otus by.

Value

ggplot2 object

Examples

1
2
3
4
5
# This will return a list of the five most variable features grouped by the
# covariate 'batch'.
box.df <- mbecBox(input.obj=dummy.mbec, method='TOP', n=5,
model.var='batch', type="otu", return.data=TRUE)
plot.box <- mbecBoxPlot(box.df[[1]], box.df[[2]], 'batch')

buschlab/MBECS documentation built on Jan. 21, 2022, 1:27 a.m.