Skip to contents

Generates a plot of the results from a STOCSY analysis.

Usage

plotStocsy(stoc_mod, shift = c(0, 10), title = NULL)

Arguments

stoc_mod

An object of class stocsy1d_metabom8 returned by the stocsy() function.

shift

Numeric vector of length 2 specifying the chemical shift range (ppm) to be plotted.

title

Character string for the plot title.

Value

A ggplot2 object displaying the STOCSY spectrum within the specified shift range.

Examples

data(covid)
X <- covid$X
ppm <- covid$ppm
sy_glucose <- stocsy(X, ppm, driver = 5.233)

plotStocsy(sy_glucose, shift = c(5.15, 5.30), title = "d = 5.233")