plot_microshades | R Documentation |
Creates a stacked abundance ggplot with color abundance organization
plot_microshades(
mdf_group,
cdf,
group_label = "Phylum Genus",
x = "Sample",
y = "Abundance"
)
mdf_group |
data.frame, melted data frame processed by microshades functions |
cdf |
data.frame containing the color key |
group_label |
string of smaller taxonomic group |
x |
string x-axis element |
y |
string y-axis element |
A ggplot
2 plot.
library(phyloseq)
data(GlobalPatterns)
mdf <- prep_mdf(GlobalPatterns)
color_obj <- create_color_dfs(mdf)
mdf_group <- color_obj$mdf
cdf <- color_obj$cdf
plot <- plot_microshades(mdf_group, cdf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.