CRAN release ‘Luminescence’ v0.9.20
- the small things -
by RLum.Network (July 16, 2022)
Sometimes the small things matter the most. Our newest release
of 'Luminescence'
(0.9.20 ) targets the small things by fixing a few bugs and adding tiny workflow improvements to selected functions.
For instance the function plot_RLum.Data.Spectrum()
finally plots the colour rug
nicely and without overplotting and can be combined with a new argument frames
to display only the frames of interest for a fast and publication-ready graphical
output.
##(1)plot simple spectrum (2D) - image
plot_RLum.Data.Spectrum(
TL.Spectrum,
plot.type = "multiple.lines",
xlim = c(310, 750),
ylim = c(0, 300),
frames = c(1, 2, 3, 6, 12),
bin.rows = 10,
bin.cols = 1
)
Another examples is the internal function Luminescence:::.add_fancy_log_axis()
to create more fancy log axis labels, not
readily available in base R. We will make the addition available successively to suitable plot functions.
The function is non-exported, which means that it is used mainly internally. However, you can use the function also
for your own R plots. How does it look?
df <- seq(1,1e+6, length.out = 100)
par(mfrow = c(1,2))
plot(df, log = "x")
plot(df, xaxt = "n", log = "x")
Luminescence:::.add_fancy_log_axis(side = 1)
And we have more. For a complete list of changes, please check our GitHub page.
Stay safe and enjoy 'Luminescence'
Sebastian on behalf of the R Luminescence Team