Plot single NMR spectrum

spec(
  x,
  ppm,
  shift = c(0, 11),
  add = FALSE,
  interactive = TRUE,
  name = "A",
  mode = "lines",
  ...
)

Arguments

x

num array, NMR spectrum.

ppm

num array, ppm vector.

shift

num array, chemical shift region to be plotted.

add

logical, indicating if spectrum should be added to a current plot generated with spec() or matspec().

interactive

logical, interactive version (plotly package)

name

string, name of trace (only used in interactive mode)

mode

string, plot mode for interactive version: 'lines' (recommended), 'lines+markers' or 'markers'

...

Additional parameters to be passed on to the graphics generic plot function.

Details

Non-interactive mode: Base graphics for single NMR spectrum. Interactive mode: Plotly graphics.

NA

See also

Author

torben.kimhofer@murdoch.edu.au

Examples

data(covid) spec(X[1,], ppm) # interactive spec(X[2,], ppm, add=TRUE) # add trace spec(X[1,], ppm, interactive=FALSE) # static