taxa_barplot | R Documentation |
Uses ggplot2 to create a stacked barplot, for example on phylum level abundances. The most abundant features (defaults to 10, based on rowMeans) will be plotted unless user specified.
taxa_barplot(features, metadata, "treatment")
features |
Table of feature/OTU/SV counts where Samples are columns, and IDs are row names |
metadata |
A Table of metadata where sample names are the row names OR there is already a column with the name "SampleID" |
category |
A metadata category to block samples by which is a column in the metadata (faceting via ggplot2) |
normalize |
How should table be normalized? (default="percent", options=c("percent","proportion","none")) |
ntoplot |
A number of features to plot. |
Barplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.