plot_frequencies: Plot Frequencies

View source: R/plot_frequencies.R

plot_frequenciesR Documentation

Plot Frequencies

Description

Plot relative frequencies within each Group for the levels of the given factor.

Usage

plot_frequencies(x, Groups, Factor)

Arguments

x

data.frame

Groups

Name of the grouping variable

Factor

Name of the frequency variable

Details

For table with the indicated frequencies, see the returned phyloseq object.

Value

ggplot plot object.

Examples

data(dietswap)
p <- plot_frequencies(meta(dietswap), 'group', 'sex')

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.