plot_frequencies {microbiome}R 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

Value

A list with two elements:

Examples

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

[Package microbiome version 1.0.2 Index]