plot_enrichment_old | R Documentation |
Plot relative representation of ASV pairs (using family labels)
plot_enrichment_old(
frequencies_subset1,
frequencies_subset2 = NULL,
frequencies,
significant_families1,
significant_families2 = NULL,
plot_height,
plot_width,
legend_topmargin,
use_pairs = TRUE,
rel_widths = c(1, 0.35, 1, 0, 4.5),
labels = NULL,
palette = NULL,
save_name = NULL,
suppress_y = FALSE
)
frequencies_subset1 |
table of ASVs or ASV pairs (labeled as "Family - Family") and their frequency in some subset of case of interest |
frequencies_subset2 |
an optional second set of frequencies for another subset |
frequencies |
table of ASV pairs (labeled as "Family - Family") and their pverall frequency |
significant_families1 |
labels associated with significant families in subset 1; only these families will be colored on the plot |
significant_families2 |
optional labels for coloring families in subset 2 |
plot_height |
plot height in inches |
plot_width |
plot width in inches |
legend_topmargin |
top margin of legend in points |
use_pairs |
if TRUE, renders relative abundances of pairs of taxa, otherwise, renders families |
rel_widths |
relative width of frequencies, frequencies_subset1, (optionally) frequencies_subset2, the legend, and a spacer between each of these elements |
labels |
optional labels for each set of frequencies |
save_name |
if NULL, ggplot object is returned |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.