mrplot: A function for plotting NMR spectra.

Description Usage Arguments Value Examples

View source: R/mrbin.R

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

1
2
3
4
5
6
7
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

1
2
3
4
5
6
7
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 Aug. 23, 2021, 9:20 a.m.