plot_enrichment: Plot relative representation of ASV pairs (using family...

View source: R/visuals.R

plot_enrichmentR Documentation

Plot relative representation of ASV pairs (using family labels)

Description

Plot relative representation of ASV pairs (using family labels)

Usage

plot_enrichment(
  frequencies,
  frequencies_subset,
  type_label,
  location_label,
  enrichment = NULL,
  count_threshold = 10,
  cap_size = 5,
  pt_sz = 3,
  title_text_sz = 12,
  text_sz = 10,
  stroke_sz = 1.25
)

Arguments

frequencies

table of ASV pairs (labeled as "Family - Family") and their pverall frequency

frequencies_subset

table of ASVs or ASV pairs (labeled as "Family - Family") and their frequency in some subset of case of interest

type_label

either "family" or "family-pair"

location_label

a label for the subset, e.g. "high universality, low synchrony taxon pairs"

enrichment

optional data.frame onto which enrichment results will be appended

count_threshold

minimum abundance at which to evaluate taxon families or family pairs for enrichment

cap_size

log2 minimum or maximum value to plot; plotted intervals will be truncated here

pt_sz

optional geom_point size

title_text_sz

optional axis title text size

text_sz

optional axis text size

stroke_sz

optional geom_linerange stroke size

Value

list containing the plot and enrichment data.frame


kimberlyroche/rulesoflife documentation built on May 7, 2023, 11:08 a.m.