setGraphics {rNMR} | R Documentation |
Change graphics settings for one or more open spectra. This function is provided as a convenience for advanced rNMR users and developers.
setGraphics(file.name = currentSpectrum, all.files = FALSE, save.backup = TRUE, refresh.graphics = FALSE, bg = NULL, fg = NULL, col.axis = NULL, col.lab = NULL, col.main = NULL, col.sub = NULL, col = NULL, usr = NULL, line.color = NULL, pos.color = NULL, neg.color = NULL, proj.color = NULL, conDisp = NULL, nlevels = NULL, clevel = NULL, type = NULL, theta = NULL, phi = NULL, asp = NULL, peak.color = NULL, peak.disp = NULL, peak.noiseFilt = NULL, peak.pch = NULL, peak.cex = NULL, peak.labelPos = NULL, thresh.1D = NULL, position.1D = NULL, offset = NULL, proj.mode = NULL, proj.type = NULL, proj.direct = NULL, filter = NULL, roi.multi = NULL, roiMain = NULL, roiMax = NULL, roi.bcolor = NULL, roi.tcolor = NULL, roi.lwd = NULL, roi.lty = NULL, roi.cex = NULL, roi.labelPos = NULL, roi.noiseFilt = NULL, roi.w1 = NULL, roi.w2 = NULL, roi.pad = NULL, w1Range = NULL, w2Range = NULL, overlay.text = NULL)
file.name |
character string or vector; the complete file path(s) to an
open spectrum or spectra to be modified, defaults to the current spectrum.
Note: file.name must match one of the values returned when calling
|
all.files |
logical; if |
save.backup |
logical; saves an undo/redo point if |
refresh.graphics |
logical; if |
bg |
see |
fg |
see |
col.axis |
see |
col.lab |
see |
col.main |
see |
col.sub |
see |
col |
see |
usr |
see |
line.color |
sets the |
pos.color |
color setting for positive contours (see |
neg.color |
color setting for negative contours (see |
proj.color |
color setting for 1D plots and projections (see
|
conDisp |
logical vector; |
nlevels |
positive integer; the number of contour levels. |
clevel |
positive numeric; the number of standard deviations away from the noise that the lowest contour should be drawn. |
type |
specifies the type of plot to be generated; " |
theta |
perspective plot control (see |
phi |
perspective plot control (see |
asp |
perspective plot control (see |
peak.color |
color setting for peak markers (see |
peak.disp |
logical; if |
peak.noiseFilt |
integer; |
peak.pch |
integer or character; the symbol used for peak markers for
picked peaks. Equivalent to R's |
peak.cex |
numeric (positive); the magnification for peak labels and
markers for picked peaks. Equivalent to R's |
peak.labelPos |
justification for peak label text. Must be one of
|
thresh.1D |
numeric; the peak picking threshold for 1D spectra. |
position.1D |
numeric; the vertical position of 1D plots within the spectral window. |
offset |
numeric; the percent of total intensity range with which to displace each spectrum. This is used to create stacked 1D spectra and is not passed to 2D plots. |
proj.mode |
logical; if |
proj.type |
specifies the type of projection to be generated;
" |
proj.direct |
integer |
filter |
function; a function used to create a 1D projection, must be
capable of being applied to a vector (e.g. |
roi.multi |
logical; if |
roiMain |
logical; if |
roiMax |
logical; if |
roi.bcolor |
color setting for active and inactive ROI boxes. Must be
a vector of length 2, |
roi.tcolor |
color setting for active and inactive ROI labels. Must be
a vector of length 2, |
roi.lwd |
numeric vector of length 2; line width for active and inactive
ROI boxes, |
roi.lty |
box type for active and inactive ROIs. Must be a vector of
length 2, |
roi.cex |
numeric (positive); text magnification for active and inactive
ROI labels, |
roi.labelPos |
justification for ROI label text. Must be one of
|
roi.noiseFilt |
integer; filter for automatic ROI generation (see
|
roi.w1 |
numeric; fixed size in the indirect dimension (in ppm) for ROIs
generated automatically using |
roi.w2 |
numeric; fixed size in the direct dimension (in ppm) for ROIs
generated automatically using |
roi.pad |
numeric; padding percentage applied to ROIs generated
automatically using |
w1Range |
numeric vector; chemical shift range ( |
w2Range |
numeric vector; chemical shift range ( |
overlay.text |
logical; if |
Sets graphics parameters for the current spectrum or spectra provided by the
file.name
argument. This includes values found in par
as
well as rNMR specific graphics parameters. Note: All changes are
applied to the files in fileFolder
, with the exception of the
global parameters which are modified in the globalSettings
list.
Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu
ct
for plot settings; per
for perspective
plot settings; co
for color settings; pj
for 1D
projections and slices; ol
for overlays; pp
for
peak picking; roi
for ROIs; sr
for chemical shift
referencing; toolkit
for other rNMR utility functions.