View source: R/plot_functions.R
tax_bar_pq | R Documentation |
Graphical representation of distribution of taxonomy, optionnaly across a factor.
tax_bar_pq(
physeq,
fact = "Sample",
taxa = "Order",
percent_bar = FALSE,
nb_seq = TRUE
)
physeq |
(required): a |
fact |
Name of the factor to cluster samples by modalities.
Need to be in |
taxa |
(default: 'Order') Name of the taxonomic rank of interest |
percent_bar |
(default FALSE) If TRUE, the stacked bar fill all
the space between 0 and 1. It just set position = "fill" in the
|
nb_seq |
(logical; default TRUE) If set to FALSE, only the number of ASV is count. Concretely, physeq otu_table is transformed in a binary otu_table (each value different from zero is set to one) |
A ggplot
2 plot with bar representing the number of sequence en each
taxonomic groups
Adrien Taudière
plot_tax_pq()
and multitax_bar_pq()
data_fungi_ab <- subset_taxa_pq(data_fungi, taxa_sums(data_fungi) > 10000)
tax_bar_pq(data_fungi_ab) + theme(legend.position = "none")
tax_bar_pq(data_fungi_ab, taxa = "Class")
tax_bar_pq(data_fungi_ab, taxa = "Class", percent_bar = TRUE)
tax_bar_pq(data_fungi_ab, taxa = "Class", fact = "Time")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.