plotCommunityStack: Function to produce a stacked bar chart of a phyllosphere...

View source: R/plotCommunityStack.r

plotCommunityStackR Documentation

Function to produce a stacked bar chart of a phyllosphere community

Description

Function to produce a stacked bar chart of a phyllosphere community

Usage

plotCommunityStack(counts, level = "Phlass", taxLevels = NULL,
  meta = NULL, cols = phlassColors, mode = "relative")

Arguments

counts

A count table in which the rows are strains or OTUs and the columns are samples.

level

Taxonomic level at which to summarise the community

taxLevels

Optional vector of taxonomic levels, in case you only want to plot some or reorder them

meta

Optional metadata that should be used to group samples

cols

A named vector of colors for the different taxonomic levels

mode

Either 'relative' or 'absolute' for calculating abundance

Value

None.

Author(s)

Chris Field <fieldc@ethz.ch>

Examples

None

cmfield/phylloR documentation built on Aug. 25, 2023, 10:07 a.m.