View source: R/plot_functions.R
plot_contributions | R Documentation |
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)
mdf |
melted data frame with microshades group processing |
cdf |
color data frame |
col_name |
name of column to subset from |
data_match |
specific data to subset match |
short_name |
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")
plots$box
plots$mean
plots$median
plots <- plot_contributions(mdf, cdf, "sex", "female")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.