plot_RLum.Data.Curve {Luminescence} | R Documentation |
Plot function for an RLum.Data.Curve S4 class object
Description
The function provides a standardised plot output for curve data of an
RLum.Data.Curve
S4-class object.
Usage
plot_RLum.Data.Curve(
object,
par.local = TRUE,
norm = FALSE,
smooth = FALSE,
auto_scale = FALSE,
...
)
Arguments
object |
RLum.Data.Curve (required):
S4 object of class |
par.local |
logical (with default):
use local graphical parameters for plotting, e.g. the plot is shown in one
column and one row. If |
norm |
logical character (with default): whether curve
normalisation should occur ( |
smooth |
logical (with default):
provides automatic curve smoothing based on the internal function |
auto_scale |
logical (with default): if activated, auto scales |
... |
further arguments and graphical parameters that will be passed to graphics::plot.default and graphics::par |
Details
Only single curve data can be plotted with this function. Arguments according to plot.
Curve normalisation
The argument norm
normalises all count values. To date the following
options are supported:
norm = TRUE
or norm = "max"
: Curve values are normalised to the highest
count value in the curve
norm = "last"
: Curve values are normalised to the last count value
(this can be useful in particular for radiofluorescence curves)
norm = "huot"
: Curve values are normalised as suggested by Sébastien Huot
via GitHub:
y = (observed - median(background)) / (max(observed) - median(background))
The background of the curve is defined as the last 20% of the count values of a curve.
Value
Returns a plot.
Function version
0.3.0
How to cite
Kreutzer, S., 2025. plot_RLum.Data.Curve(): Plot function for an RLum.Data.Curve S4 class object. Function version 0.3.0. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., Mercier, N., Philippe, A., Riedesel, S., Autzen, M., Mittelstrass, D., Gray, H.J., Galharret, J., Colombo, M., Steinbuch, L., Boer, A.d., 2025. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 1.1.0. https://r-lum.github.io/Luminescence/
Note
Not all arguments of plot will be passed!
Author(s)
Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany) , RLum Developer Team
See Also
Examples
##plot curve data
#load Example data
data(ExampleData.CW_OSL_Curve, envir = environment())
#transform data.frame to RLum.Data.Curve object
temp <- as(ExampleData.CW_OSL_Curve, "RLum.Data.Curve")
#plot RLum.Data.Curve object
plot_RLum.Data.Curve(temp)