zoom {mrbin} | R Documentation |
A function for changing plotNMR plots.
Description
This function changes the plot region of the current NMR plot. Can be called with no arguments: zoom(). In this case the user will be asked for manual input.
Usage
zoom(
left = NULL,
right = NULL,
top = NULL,
bottom = NULL,
refreshPlot = TRUE,
dimension = "2D"
)
Arguments
left |
New left boundary |
right |
New right boundary |
top |
New top boundary |
bottom |
New bottom boundary |
refreshPlot |
Refresh plot automatically. Defaults to TRUE |
dimension |
Dimension of the data. Defaults to "2D" |
Value
An invisible value indicating if a change occurred
Examples
resetEnv()#clean up previous data from the package environment
mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1,
PQNScaling="No",noiseRemoval="No",trimZeros="No",
fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,
NMRvendor="mrbin",
example=TRUE,#only used for the package examples
NMRfolders=system.file("extdata/1.mr1",package="mrbin")))
plotNMR()
zoom(left=4.6,right=2,top=10,bottom=150)
[Package mrbin version 1.9.4 Index]