mrplot {mrbin} | R Documentation |
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.
mrplot(
hideMenu = FALSE,
folders = NULL,
dimensions = NULL,
intensity1D = NULL,
zoom = NULL,
color = NULL,
background = NULL,
lwd = 1,
plotTitle = "",
showNames = "Spectrum titles",
graphics = TRUE,
highlight = NULL,
...
)
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 |
color |
Defines the color of the spectrum plot. If NULL, a rainbow theme is used for 2D NMR |
background |
Background color, defaults to NULL (no background fill, usually results in a white background) |
lwd |
Line width, defaults to 1 |
plotTitle |
Plot title, defaults to "" (empty) |
showNames |
Display list of spectrum titles in plot, defaults to "Spectrum titles". Other options are "" and "Folder names" |
graphics |
Controls whether pop-up windows are shown for selections. Defaults to TRUE. |
highlight |
A vector of up to 2 frequencies that will be highlighted in the plot. If 2 values are provided the distance in Hz is shown as well. Defaults to NULL. |
... |
Additional graphical parameters that will be passed to the functions plot, lines, and/or contour |
None
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.4,20,55),
highlight=c(2.564,2.537),
intensity1D=32,hideMenu=TRUE)