plot.nmr2d.data.object: Plot 2D NMR data

Description Usage Arguments Value Examples

View source: R/PLOT-nmr2d.data.object.R

Description

This function plots 2D NMR Data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S3 method for class 'nmr2d.data.object'
plot(nmrdata, xlim = NA, ylim = NA,
  plot_offset = "auto", axes = 1, xaxismline = -0.8,
  xaxislabelmline = 1.1, plot.colour = TRUE, plot.colour.ranges = NA,
  plot.colour.yranges = "auto", col_na = "black",
  colour_scheme = c("blue", "green", "yellow", "magenta", "red"),
  colour.legend = FALSE, colour.legend.show.zero = TRUE,
  damp_colour_scaling_percent = NA, col = "Black", lwd = par("lwd"),
  shade_under = FALSE, shade_col = "grey",
  shade_min_intensity = -Inf, y_trunc = NA, y_trunc_x_points = c(),
  y_trunc_amp_div = 200, y_trunc_label_offset_factor = 20,
  y_trunc_sin_period = 5, y_trunc_labels = c(),
  y_trunc_text_col = "grey", y_trunc_line_col = "grey",
  y_trunc_lwd = 2, y_trunc_cex = 1, show_ppm_label = TRUE,
  ticksOut = T, lowerTickLimit = NA, lowerLabelLimit = NA,
  upperTickLimit = NA, upperLabelLimit = NA, forcedInterval = NA,
  forcePrint = FALSE)

Arguments

nmrdata

Data frame of (real) NMR data (ppm, intensity1, ...)

xlim

x range of data to plot (ppm) – should be in form c(upper, lower) or spectrum will be reversed (or 'auto')

ylim

Y range of data to plot (or 'auto')

plot_offset

offset between subsequent plots (or 'auto')

xaxismline

The margin line on which to draw the x-axis

xaxislabelmline

The margin line on which to draw the x-axis label

plot.colour

(TRUE / FALSE) Should the plot be coloured?

plot.colour.ranges

list of x ranges to colour (can be NA to cover entire range)

col_na

Colour of values outside of colouring y-range

colour_scheme

If plot.colour is TRUE, each colour y-range (as specified in plot.colour.ylims) will be split into a number of equal ranges based on the number of colours specified in this vector. Each range will be assigned to one of the colours, starting from the smallest y-value.

colour.legend

(TRUE / FALSE) Show a basic legend of the chosen colour_scheme

colour.legend.show.zero

(TRUE / FALSE) If the colour range extends beyond zero, indicate this value in the legend (WARNING: Only valid if there is a single colour scaling range)

damp_colour_scaling_percent

Apply a linear damping to the values used for colour scaling to this percent of the end of the range to help avoid a "hard" end (NA to disable)

col

Line colour for plot

lwd

Line width for plot

shade_under

TRUE / FALSE shade under the plot

shade_col

colour to shade plot

shade_min_intensity

Only shade under points with intensity greater than this

y_trunc

Truncate y values that are higher than this (or NA for auto)

y_trunc_x_points

X-ranges to draw truncation lines over

y_trunc_amp_div

Factor to divide amplitude of truncation line

y_trunc_label_offset_factor

Factor to offset truncation line label by

y_trunc_sin_period

Period of sine wave for truncation line

y_trunc_labels

List of labels for truncation line

y_trunc_text_col

Colour of text for truncation line

y_trunc_line_col

Colour of truncation line

y_trunc_lwd

Line width of truncation line

y_trunc_cex

cex of truncation label

show_ppm_label

(TRUE / FALSE) Should plot ppm axis label

xTickInterval

Tick interval for x axis (or 'auto')

xMinorTickInterval

Minor tick interval for x axis (or 'auto')

plot.colour.ylims

list of y ranges to scale colours over (can be 'auto')

Value

List of alignment_parameters

Examples

1

jmstrat/NMR.Utils documentation built on July 14, 2019, 11:35 p.m.