View source: R/boxplot_abundance.R
boxplot_abundance | R Documentation |
Plot phyloseq abundances.
boxplot_abundance(
d,
x,
y,
line = NULL,
violin = FALSE,
na.rm = FALSE,
show.points = TRUE
)
d |
|
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 |
The directionality of change in paired boxplot is indicated by the colors of the connecting lines.
A ggplot
plot object
data(peerj32)
p <- boxplot_abundance(peerj32$phyloseq, x='time', y='Akkermansia',
line='subject')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.