trendAbundanceAssignment: Check Trend in Abundance and Taxonomic Assignment

View source: R/trendAbundanceAssignment.R

trendAbundanceAssignmentR Documentation

Check Trend in Abundance and Taxonomic Assignment

Description

Check Trend in Abundance and Taxonomic Assignment

Usage

trendAbundanceAssignment(x, quantiles = seq(0, 95, by = 10), plot = TRUE)

Arguments

x

A phyloseq object

quantiles

Abundances values to sort. Can be changed to specify how many values in a distribution are above or below a certain limit.

plot

Logical. Default is TRUE.

Details

Check if the more abundance-prevalent taxa have better taxonomic assignments. This is a pre-check, not corrected for differences in sequencing depth.

Value

Either a list with data.frame and plot or just ggplot object.

Author(s)

Sudarshan A. Shetty

References

Examples

library(biomeUtils)
data("SprockettTHData")

p1 <- trendAbundanceAssignment(SprockettTHData,
                              quantiles = seq(0, 95, by = 5),
                              plot=TRUE)
p1 + ggplot2::scale_colour_brewer("", palette = "Spectral") +
    ggplot2::theme_minimal() +
    ggplot2::theme(axis.text.x = element_text(angle=90, vjust=0.5))


RIVM-IIV-Microbiome/biomeUtils documentation built on July 20, 2023, 10:29 a.m.