Plot Statistical Total Correlation Spectroscopy (STOCSY)

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

Arguments

stoc_mod

STOCSY object, as created with function 'stocsy' ('see ?stocsy()')

shift

num array, chemical shift range defining plotting area

title

char, plot title

Value

ggplot2 object, stocsy plot

NA

Author

torben.kimhofer@murdoch.edu.au

Examples

data(covid) stcy_glucose=stocsy(X, ppm, driver=5.233)
plotStocsy(stcy_glucose, shift=c(5.15, 5.30), title='Alpha-anomeric proton of glucose (doublet)')
points(speaks[[1]]$ppm, speaks[[1]]$Int, col=factor(speaks[[1]]$type))
#> Error in points(speaks[[1]]$ppm, speaks[[1]]$Int, col = factor(speaks[[1]]$type)): object 'speaks' not found