plot_tax_bar | R Documentation |
plot_tax_bar()
creates a taxa bar chart from the data frame generated
by make_phy_df()
.
plot_tax_bar(
taxa_df,
rank,
colours = NULL,
sample = "X.SampleID",
abund = "Abundance",
legloc = "right",
yscale = "lin",
means = FALSE,
r_ticks = FALSE,
leglen = NULL
)
This function generates a ggplot object that is a first-pass, reasonable attempt at a taxon bar chart. The taxa are ordered by mean abundance and the 'Other' category is at the top. Because it's a regular ggplot object, you can add more geoms or facet it or manipulate it however you like using ggplot functions.
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.