plotCommunityPie: Function to produce a pie chart of an individual community.

View source: R/plotCommunityPie.r

plotCommunityPieR Documentation

Function to produce a pie chart of an individual community.

Description

Function to produce a pie chart of an individual community.

Usage

plotCommunityPie(counts, level = "Phlass", cols = phlassColors)

Arguments

counts

A count table in which the rows are strains or OTUs and the columns are samples. The table should include only a single sample group.

level

The taxonomic level at which the data will be summarised

cols

A vector of colours where the names() of the vector correspond to the taxonomic labels.

Details

For each taxon at the chosen level, the sum of all counts for the strains in that taxon across all samples is divided by the total sum of the count table.

Value

None.

Author(s)

Chris Field <fieldc@ethz.ch>

Examples

None

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