Plots relative distribution for taxa across samples.
plot_taxa(
ps,
level = "Phylum",
show_samples = TRUE,
sort = TRUE,
max_taxa = 12,
only_data = FALSE,
...
)
A phyloseq data set.
The taxonomy level to use. Defaults to phylum.
Whether to show sample names.
Whether to sort taxa by abundance across all samples.
Maximum number of different taxa to plot. If more than 12 there is probably no color scale that can visualize them.
Only get the raw data for the plot as a data table.
Addditional arguments passed to geom_bar.
Nothing or a data.table containing the relative abundances.
NULL
#> NULL