| addArg {rNMR} | R Documentation |
Additional arguments that can be passed to rNMR functions.
Many rNMR functions accept additional arguments that get passed to internal plotting and peak picking functions. The option of passing these arguments is provided as a convenience for advanced rNMR users and developers. The various parameters for these functions are described below.
addlogical; TRUE adds new data to an existing plot,
FALSE generates a new plot.
axeslogical; TRUE makes pretty labels, FALSE
puts a box around the plot but no labels.
bgBackground color, see colors for the many color
options.
colColor for 1D data and 1D slices/projections of 2D data. All
2D plots use pos.color for positive intensities, and
neg.color for negative intensities. 3D perspective plots use
pos.color for all data, and all 1D plots use col.
col.axisAxis color, see colors for the many color
options.
col.labColor used for axis labels, see colors for
the many color options.
col.mainColor used for plot main titles, see
colors for the many color options.
col.subColor used for plot sub-titles, see colors
for the many color options.
conDisplogical vector; c(TRUE, TRUE) plots positive
and negative contours, c(TRUE, FALSE) plots only positive,
c(FALSE, TRUE) plots only the negative contours,
c(FALSE, FALSE) plots no contours.
fgForeground color, see colors for the many color
options.
maincharacter string; main title for plot, the default is the file name.
neg.colorColor for negative contours, the default is the most
recent setting for the file, see colors for the many color
options.
neg.zlimnumeric (c(lower, upper)); min and max
intensities to be displayed for negative contours, the default is the most
recent setting used with the file.
nlevelspositive integer; the number of contour intervals to be drawn, the default is the most recent setting used for the file.
p.windowcharacter string; name of the window (device) to be
used, can be "main", "sub", "multi", or
"stats".
pos.colorColor for positive contours, the default is the most
recent setting for the file, see colors for the many color
options.
pos.zlimnumeric (c(lower, upper)); min and
max intensities to be displayed for positive contours, the default is the
most recent setting used with the file.
typecharacter string; specifies the type of plot to be
generated. 2D data can be drawn as "auto", "image",
"contour", "filled", and "persp". Image plots are
fastest, contour plots are more detailed, "filled" produces a filled
contour plot, "persp" generates a 3D perspective plot, and
"auto" (the default) switches between image and contour depending on
the amount of data being displayed. 1D plots can also be passed a type.
Arguments include "l", "p", and "b" for line, point,
and both line and points, respectively. 1D spectra default to "l".
2D data, when passed any of the 1D arguments will invoke proj1D
and "l", "p" or "b" will be passed to proj1D.
If type is set to NULL, type is taken from the
spectrum's last setting.
w1Rangenumeric (c(lower, upper)); chemical
shift range in the indirect dimension, the default is the most recent
setting used with the file.
w2Rangenumeric (c(lower, upper)); chemical
shift range in the direct dimension, the default is the most recent setting
used with the file.
xlabcharacter string; label for the x-axis, the default is the direct detected nucleus in ppm.
ylabcharacter string; label for the y-axis, the default is the indirect detected nucleus in ppm.
See plot, image, contour,
persp for additional plot parameters and their descriptions.
appendlogical; TRUE appends new peaks to the previous
peak list.
fancylogical; FALSE implements a basic peak picker that
returns local maxima only (this is fastest), TRUE determines
chemical shifts of peaks, groups multiplets, and measures line width.
file.namecharacter string or vector; name of the file(s) to be
peak picked. The default, NULL, will pick the current spectrum.
Note: file.name must match one of the values returned when calling
names(fileFolder).
internallogical; TRUE returns the peak list without
assigning it to fileFolder, FALSE assigns the list to fileFolder.
noiseFilteither 0, 1 or 2; 0 does
not apply a noise filter, 1 applies a mild filter (adjacent points in
the direct dimension must be above the noise threshold), 2 applies a
strong filter (all adjacent points must be above the noise threshold.
w1Rangenumeric; w1 chemical shift range
(c(downfield, upfield)) to be used.
w2Graninteger; controls granularity of search space, smaller values are more exhaustive, larger values suppress noise.
w2Rangenumeric; w2 chemical shift range
(c(downfield, upfield)) to be used.
Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu
rNMR for other rNMR help topics.