Description Usage Arguments Details Value
View source: R/microbiome_barplot.R
Create a bacterial composition plot
1 2 3 4 5 6 7 8 9 10 | microbiome_barplot(
physeq,
level = c("Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species"),
plot_category,
plot_percent = 10,
color_methods = c("abundance", "common", "manual"),
manual_color_palette = NULL,
threshold = "max",
na_str = c("unidentified", "uncultured")
)
|
physeq |
phyloseq object |
level |
taxonomy level |
plot_category |
metadata category (expect a vector of strings containing categories) |
plot_percent |
threshold persent |
color_methods |
coloring methods |
threshold |
the way of calculating threshold values |
na_str |
taxa name to be Undetermined |
Create a bacterial composition plot using a specific threshold value.
barplot of microbiome composition as ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.