Plots distribution of reads.

plot_read_distribution(x, groups, plot.type = c("density", "histogram"))

Arguments

x

phyloseq-class object

groups

Metadata variable to check for groups based sequencing effort.

plot.type

Either density or histogram plot

Value

A ggplot plot object.

Author

Contact: Sudarshan Shetty sudarshanshetty9@gmail.com

Examples

library(microbiome)
data(zackular2014)
ps0 <- zackular2014
p <- plot_read_distribution(ps0, groups = "DiseaseState", plot.type = "density")
print(p)