plot_mt: Plot the result of a mt test 'phyloseq::mt()'

View source: R/plot_functions.R

plot_mtR Documentation

Plot the result of a mt test phyloseq::mt()

Description

lifecycle-maturing

Graphical representation of mt test.

Usage

plot_mt(
  mt = NULL,
  pval = 0.05,
  color_rank = "Class",
  color_tax = lifecycle::deprecated(),
  taxa = "Species"
)

Arguments

mt

(required) Result of a mt test from the function phyloseq::mt().

pval

(default: 0.05) Choose the cut off p-value to plot taxa.

color_rank

(default: "Class") A taxonomic level to color the points.

color_tax

[Deprecated] Use color_rank instead.

taxa

(default: "Species") The taxonomic level you choose for x-positioning.

Value

a ggplot2 plot of result of a mt test

Author(s)

Adrien Taudière

See Also

phyloseq::mt()

Examples


data_fungi_mini2 <- subset_samples(data_fungi_mini, !is.na(Time))
res <- mt(data_fungi_mini2, "Time", method = "fdr", test = "f", B = 300)
plot_mt(res)
plot_mt(res, taxa = "Genus", color_rank = "Order")


MiscMetabar documentation built on Nov. 16, 2026, 5:06 p.m.