Description Usage Arguments Details Value Note Author(s) See Also Examples
View source: R/plot_Spectrum.R
Function to plot an ESR spectrum and finding peaks using an automated routine.
1 2 3 4 5 6 7 8 | plot_Spectrum(data, stacked = FALSE, normalise = FALSE, crop = TRUE,
y_scale_factor = 2, vertical_lines, vertical_lines_manual,
col_bg = "grey90", manual_shift, manual_shift_global, gvalue = FALSE,
difference = FALSE, integrate = FALSE, smooth.spline = FALSE,
smooth.spline.df, smooth.spline.diff.df, overlay = TRUE,
auto.shift = FALSE, shift.method = "ccf", find.peaks = FALSE,
peak.range, peak.threshold = 10, peak.information = FALSE,
info = NULL, plot = TRUE, add = FALSE, ...)
|
data |
|
stacked |
|
normalise |
|
crop |
|
y_scale_factor |
|
vertical_lines |
|
vertical_lines_manual |
|
col_bg |
|
manual_shift |
|
manual_shift_global |
|
gvalue |
|
difference |
|
integrate |
|
smooth.spline |
|
smooth.spline.df |
|
smooth.spline.diff.df |
|
overlay |
|
auto.shift |
|
shift.method |
|
find.peaks |
|
peak.range |
|
peak.threshold |
|
peak.information |
|
info |
|
plot |
|
add |
|
... |
Further plot arguments to pass. |
Status
In progress
Returns terminal output and a plot. In addition, a list is returned containing the following elements:
data |
list containing the (modified) input data |
splines |
list containing the spline objects |
auto.peaks |
data frame containing the peak information (magnetic field and ESR intensity) found by the peak find routine. |
In progress
Christoph Burow, University of Cologne (Germany)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ##load example data
data(ExampleData.ESRspectra, envir = environment())
##plot dpph and use the automatic peak finding routine
plot_Spectrum(ExampleData.ESRspectra$dpph, find.peaks = TRUE,
peak.range = c(3340,3355),
peak.threshold = 10, peak.information = TRUE,
verbose = TRUE)
##plot the mollusc (sample Ba01) natural ESR spectrum with a smoothing spline
plot_Spectrum(ExampleData.ESRspectra$Ba01_00,
smooth.spline = TRUE,
smooth.spline.df = 40,
overlay = TRUE)
##plot all ESR spectra of sample Ba01
plot_Spectrum(ExampleData.ESRspectra$Ba01)
##plot all ESR spectra of sample Ba01 and align curves by the max peak
plot_Spectrum(ExampleData.ESRspectra$Ba01,
auto.shift = TRUE)
##plot all ESR spectra of sample Ba01, use smoothing splines and
##align curves by the max peak
plot_Spectrum(ExampleData.ESRspectra$Ba01,
smooth.spline = TRUE,
smooth.spline.df = 40,
auto.shift = TRUE,
overlay = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.