zoom: A function for changing plotNMR plots.

View source: R/mrbin.R

zoomR 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

mrbin(silent=TRUE,setDefault=TRUE,parameters=list(dimension="1D",binwidth1D=.1,
         PQNScaling="No",noiseRemoval="No",trimZeros="No",tryParallel=TRUE,
         fixNegatives="No",logTrafo="No",PCA="No",verbose=TRUE,
         NMRfolders=system.file("extdata/1/10/pdata/10",package="mrbin")))
plotNMR()
zoom(left=4.6,right=2,top=10,bottom=150)

mrbin documentation built on April 4, 2025, 5:24 a.m.