plotBaseline | R Documentation |
Plot the original spectrum, the estimated baseline, and the corrected spectrum. Optionally zoom and pan plot, either with arguments or interactively.
## S4 method for signature 'baseline'
plot(x, y, specNo = 1, grid = FALSE, labels = 1:n, rev.x = FALSE,
zoom = NULL, ...)
plotBaseline(x, y, specNo = 1, grid = FALSE, labels = 1:n, rev.x = FALSE,
zoom = list(xz = 1, yz = 1, xc = 0, yc = 0), ...)
x |
The |
y |
Unused. Ignored with a warning |
specNo |
The row number of the spectrum and baseline to plot. Defaults to 1 |
grid |
Logical. Whether to show a grid or not. Defaults to |
labels |
Vector. Labels for the x tick marks. Defaults to |
rev.x |
Logical. Whether the spectrum should be reversed.
Defaults to |
zoom |
Either |
... |
Other arguments. Currently ignored |
The normal way to plot baseline
objects is to use the
plot
method. The plotBaseline
function is the
underlying work-horse function, and is not meant for interactive use.
Because the argument list of any plot method must start with x
,
y
, and the plot method for the baseline
class does not
use the y
argument, all arguments except x
must be named
explicitly. Positional matching will not work.
Kristian Hovde Liland and Bjørn-Helge Mevik
baseline
, baseline
,
baselineGUI
data(milk)
bl <- baseline(milk$spectra[1,, drop=FALSE])
## Not run:
# Computationally intensive
plot(bl)
plot(bl, zoom = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.