taxa_barplot: taxa_barplot

View source: R/taxa_barplot.R

taxa_barplotR Documentation

taxa_barplot

Description

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.

Usage

taxa_barplot(features, metadata, "treatment")

Arguments

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.

Value

Barplot


jbisanz/qiime2R documentation built on April 24, 2024, 5 p.m.