Creates a stacked abundance ggplot with color abundance organization

plot_microshades(
  mdf_group,
  cdf,
  group_label = "Phylum Genus",
  x = "Sample",
  y = "Abundance"
)

Arguments

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

Value

A ggplot2 plot.

Examples

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)