bar_plot_update_manual: Functions to assist in the current UCLA Metabolomics...

View source: R/bar_plot_update_manual.R

bar_plot_update_manualR Documentation

Functions to assist in the current UCLA Metabolomics Pipeline.

Description

This package contains functions to assist in the current UCLA Metabolomics Quality Control and Analysis Pipeline. Called by bar_update_manual. Finalizes the a page of plots of the relative amounts of the different metabolites that are part of the specified defined pathway.

Usage

bar_plot_update_manual(
  a,
  met,
  Title,
  x,
  y,
  axis.text.x,
  scales,
  type = NULL,
  num_cond = NULL,
  index = NULL
)

Arguments

a

the initial ggplot object

met

a data frame containing the relative amounts of the different metabolites in the experiment

Title

title

scales

parameter passed to ggplot for the facet_wrap vertical axis scale ('free', 'fixed), from ggplot: Are scales shared across all facets (the default, "fixed"), or do they vary across rows ("free_x"), columns ("free_y"), or both rows and columns ("free").

type

the type of analysis or quality control being run ('tf', ”)

num_cond

the number of conditions in the experiment

Value

a plot of the relative amounts of a specific metabolites that are part of the specified defined pathway (based on the 'metabolites' parameter in bar_update_manual.R)


graeberlab-ucla/MetabR documentation built on Feb. 5, 2024, 2:06 p.m.