plot_metabolite_counts: Make bar plot of MIMOSA outcome counts in different...

View source: R/postProcessing.R

plot_metabolite_countsR Documentation

Make bar plot of MIMOSA outcome counts in different metabolite categories

Description

Make bar plot of MIMOSA outcome counts in different metabolite categories

Usage

plot_metabolite_counts(
  node_data,
  variable,
  threshold = "low",
  prediction_colors = c("#1B9E77", "lightgrey", "#F46D43")
)

Arguments

node_data

Processed core MIMOSA results table

variable

Grouping variable for metabolites (must be a column name in node_data)

threshold

Whether to use the lower or higher significance threshold

prediction_colors

List of 3 colors to use as color scheme for Consistent, Contrasting, & Inconsistent metabolites

Value

plot object of MIMOSA outcome counts across specified metabolite categories plot_metabolite_counts(node_data, "Category")


borenstein-lab/mimosa2 documentation built on Dec. 19, 2024, 12:44 a.m.