boxplot_abundance: Abundance Boxplot

Description Usage Arguments Details Value Examples

View source: R/boxplot_abundance.R

Description

Plot phyloseq abundances.

Usage

1
2
3
4
5
6
7
8
9
boxplot_abundance(
  d,
  x,
  y,
  line = NULL,
  violin = FALSE,
  na.rm = FALSE,
  show.points = TRUE
)

Arguments

d

phyloseq-class object

x

Metadata variable to map to the horizontal axis.

y

OTU to map on the vertical axis

line

The variable to map on lines

violin

Use violin version of the boxplot

na.rm

Remove NAs

show.points

Include data points in the figure

Details

The directionality of change in paired boxplot is indicated by the colors of the connecting lines.

Value

A ggplot plot object

Examples

1
2
3
data(peerj32)
p <- boxplot_abundance(peerj32$phyloseq, x='time', y='Akkermansia',
   line='subject')

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.