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, alpha = 0.05, color_tax = "Class", taxa = "Species")

Arguments

mt

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

alpha

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

color_tax

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

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_tax = "Order")


MiscMetabar documentation built on Oct. 8, 2024, 1:07 a.m.