Creates a stacked abundance ggplot with color abundance organization
plot_microshades(
mdf_group,
cdf,
group_label = "Phylum Genus",
x = "Sample",
y = "Abundance"
)
data.frame, melted data frame processed by microshades functions
data.frame containing the color key
string of smaller taxonomic group
string x-axis element
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)