plot_taxa | R Documentation |
Plots relative distribution for taxa across samples.
plot_taxa(
ps,
level = "Phylum",
show_samples = TRUE,
sort = TRUE,
max_taxa = 12,
only_data = FALSE,
...
)
ps |
A phyloseq data set. |
level |
The taxonomy level to use. Defaults to phylum. |
show_samples |
Whether to show sample names. |
sort |
Whether to sort taxa by abundance across all samples. |
max_taxa |
Maximum number of different taxa to plot. If more than 12 there is probably no color scale that can visualize them. |
only_data |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.