Skip to contents

Visualize pairwise group overlap in prevalent taxa.

Usage

plot_taxa_overlap(
  object,
  group_by,
  taxonomic_rank = c("Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species"),
  prevalence_cutoff = 0.3,
  relative = TRUE
)

Arguments

object

A microbiome_dataset object.

group_by

Sample metadata column defining the groups.

taxonomic_rank

Taxonomic rank used for aggregation.

prevalence_cutoff

Prevalence cutoff within each group.

relative

Whether to use relative abundance.

Value

A ggplot object.

Examples

data("global_patterns", package = "microbiomedataset")
plot_taxa_overlap(global_patterns, group_by = "SampleType", taxonomic_rank = "Phylum")