plot_contributions: Creates median and mean abundance barplots, and boxplots for...

View source: R/plot_functions.R

plot_contributionsR Documentation

Creates median and mean abundance barplots, and boxplots for microshades taxa contribution plots keeping colors consistent in the microshades stacked barplots

Description

Creates median and mean abundance barplots, and boxplots for microshades taxa contribution plots keeping colors consistent in the microshades stacked barplots

Usage

plot_contributions(mdf, cdf, col_name, data_match, short_name = NULL)

Arguments

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

Value

list

  • "box" boxplot

  • "mean" barplot of mean abundance

  • "median"barplot of median abundance

Examples


plots <- plot_contributions(mdf, cdf,  "dmm", 1, short_name = "group_short")

plots$box
plots$mean
plots$median

plots <- plot_contributions(mdf, cdf,  "sex", "female")


KarstensLab/microshades documentation built on June 11, 2024, 11:41 a.m.