Description Usage Arguments Details Author(s) See Also Examples
View source: R/plot.spectrum.R
Plots a spectrum (i.e. a dataframe with entries lambda
and
value
or contsub
). This is a convenience wrapper for
plot.default
which selects the correct columns
automatically and defaults to type='l'
.
1 2 3 4 |
x |
a |
add |
add the spectrum to an existing plot |
scale |
multiply the spectrum values by this number |
offset |
add a constant offset to the (scaled) spectrum |
norm |
Normalize the spectrum to either a mean value of unity
(default) or standard deviation of unity (if uning |
noise |
if |
contsub |
if |
contdiv |
if |
mask |
if not |
... |
Further graphical parameters (see 'par') may also be supplied as arguments. |
The spectrum can be scaled, offset or normalized. The normalization
is the mean of the spectrum value
, except if the continuum
subtracted spectrum, when the standard deviation of that is used.
Oliver Czoske
1 2 3 4 5 | spectrum <- data.frame(lambda=seq(3800, 6500, length=500),
value=rnorm(500), name="A random noise spectrum")
plot.spectrum(spectrum, ylim=c(-3, 5))
plot.spectrum(spectrum, add=TRUE, offset=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.