Plots relative distribution for taxa across samples.

plot_taxa(ps, level = "Phylum", sort = TRUE, max_taxa = 12,
  only_data = FALSE)

Arguments

ps

A phyloseq data set.

level

The taxonomy level to use. Defaults to phylum.

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.

Value

Nothing or a data.table containing the relative abundances.

Examples

NULL
#> NULL