R/plot_functions.R
plot_contributions.Rd
Creates median and mean abundance barplots, and boxplots for microshades taxa contribution plots keeping colors consistent in the microshades stacked barplots
plot_contributions(mdf, cdf, col_name, data_match, short_name = NULL)
melted data frame with microshades group processing
color data frame
name of column to subset from
specific data to subset match
alternate group name in both the mdf and cdf, note the group column still must exist
list
"box" boxplot
"mean" barplot of mean abundance
"median"barplot of median abundance
plots <- plot_contributions(mdf, cdf, "dmm", 1, short_name = "group_short")
#> Error in eval(expr, envir, enclos): object 'mdf' not found
plots$box
#> Error in eval(expr, envir, enclos): object 'plots' not found
plots$mean
#> Error in eval(expr, envir, enclos): object 'plots' not found
plots$median
#> Error in eval(expr, envir, enclos): object 'plots' not found
plots <- plot_contributions(mdf, cdf, "sex", "female")
#> Error in eval(expr, envir, enclos): object 'mdf' not found