IsoPlot function
IsoPlot_fun.Rd
A function to plot isotopic data from metabolomic experiments
Usage
IsoPlot_fun(
feat_table = NULL,
metadata_table = NULL,
groups = "sample",
relativeCID = TRUE,
dodgeCID = FALSE,
outpath = "./isoplot_results",
pdf = TRUE,
img = TRUE
)
Arguments
- feat_table
Features table
- metadata_table
Metadata table
- groups
Grouping factor
- relativeCID
Stacked barplot of CID with relative value (TRUE) or absolute value (FALSE)
- dodgeCID
Stacked barplot of CID with dodge position (TRUE) or stack position (FALSE)
- outpath
Output path
Output PDF (TRUE) or not (FALSE)
- img
Output JPG (TRUE) or not (FALSE)
Value
A list containing the following elements:
Isoplot A list of ggplot objects containing the barplots of the experimental isotopologue fraction of each metabolite with error bars
EnrC13_TotArea A list of ggplot objects containing the barplots of the mean EnrC13 and Total Area of each metabolite (one figure per metabolite)
EnrC13_TotArea_allMet A list of ggplot objects containing the barplots of the mean EnrC13 and Total Area of all metabolites (one figure per sample or group of samples)
Examples
if (FALSE) { # \dontrun{
feat <- glue::glue(system.file(package = "graphstatsr"), "/dataset/isoplot_quantification_table.csv")
metadata <- glue::glue(system.file(package = "graphstatsr"), "/dataset/isoplot_metadata.csv")
res <- IsoPlot_fun(feat_table = feat, metadata_table = metadata, groups = "sample",
relativeCID = TRUE, outpath = "./isoplot_results")
} # }