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

### 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')

[Package microbiome version 1.8.0 Index]