boxplot_abundance {microbiome} | R 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')

[Package microbiome version 1.6.0 Index]