fullbartax: Taxonomic Composition Stacked Barcharts - 7 levels

View source: R/bartax.R

fullbartaxR Documentation

Taxonomic Composition Stacked Barcharts - 7 levels

Description

The fullbartax() function will create taxonomic composition for barcharts for all 7 taxonomic levels.

Usage

fullbartax(x, xvar = "Sample", lowabun = 0.01, yvar = "Abundance", cols = NULL)

Arguments

x

is a phyloseq object.

xvar

is a categorical variable selected from the metadata.

lowabun

is the cut off value for a low-abundant group.

yvar

is the relative abundance of reads.

cols

is a vector containing specified colour values (sufficient number for number of taxonomic groups found at all levels).

Value

A list of ggplot objects.

Examples

## Not run: 
library(mirlyn)
data(example)
fullbartax(example,"Sample", lowabun = 0.01, yvar="Abundance")

## End(Not run)


escamero/mirlyn documentation built on Aug. 6, 2023, 9:30 p.m.