plot_frequencies {microbiome} | R Documentation |
Plot relative frequencies within each Group for the levels of the given factor.
plot_frequencies(x, Groups, Factor)
x |
|
Groups |
Name of the grouping variable |
Factor |
Name of the frequency variable |
A list with two elements:
dataTable with the indicated frequencies.
plotggplot
plot object.
data(dietswap) p <- plot_frequencies(sample_data(dietswap), 'group', 'sex')