mrplot: A function for plotting NMR spectra.

View source: R/mrbin.R

mrplotR Documentation

A function for plotting NMR spectra.

Description

This function plots NMR spectra. A menu of commands is displayed to edit the plot view and add spectra. Multiple spectra will be overlaid, and if both 1D and 2D spectra are selected, they are shown in two plots with matched ranges.

Usage

mrplot(
  hideMenu = FALSE,
  folders = NULL,
  dimensions = NULL,
  intensity1D = NULL,
  zoom = NULL
)

Arguments

hideMenu

Do not show the menu. Defaults to FALSE

folders

Optional vector of folder names of spectra to load. Defaults to NULL

dimensions

Optional vector dimensions of spectra to load. Defaults to NULL

intensity1D

Optional value of initial 1D intensity. Defaults to NULL

zoom

Optional vector of initial zoom area. Defaults to NULL

Value

None

Examples

resetEnv()
mrplot(folders=c(system.file("extdata/1/12/pdata/10",package="mrbin"),
                 system.file("extdata/1/10/pdata/10",package="mrbin"),
                 system.file("extdata/2/10/pdata/10",package="mrbin"),
                 system.file("extdata/3/10/pdata/10",package="mrbin")),
       dimensions=c("2D","1D","1D","1D"),zoom=c(2.8,2.3,20,55),
       intensity1D=32,hideMenu=TRUE)

mrbin documentation built on April 11, 2023, 6:05 p.m.