boxplot_abundance: Abundance Boxplot

View source: R/boxplot_abundance.R

boxplot_abundanceR Documentation

Abundance Boxplot

Description

Plot phyloseq abundances.

Usage

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

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

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.