This update to ‘ggspectra’ tracks changes in ‘photobiology’ 0.10.15, ‘photobiologyWavebands’ 0.5.1 and ‘ggplot2’ 3.4.0, as well as in R 4.1.0. These are mostly deprecations that would trigger warnings. Please, be aware that these versions or later are now required.
The corrected definition of
PAR() in ‘photobiologyWavebands’ 0.5.1 is code breaking as this change will cause some plots, especially annotations in them to change, when
PAR() has been explicitly called in users’ code for quantities that are not photon based, in most cases with a warning.
New x scales and new functions for adding secondary x axes have been implemented.
The changes from version 0.3.9, the current CRAN release, are:
- Track bug fix in ‘photobiologyWavebands’, that updated the definition of
PAR()(photosynthetically active radiation) as a BSWF (biological spectral weighting function). The previous definition of
PAR()as a wavelength range returned a value that can be called “PAR” only when used to compute photon
irradiance or photon exposure. This change does not affect the numerical values of energy irradiances or other spectral quantities when using
autoplot()with the default
w.bandargument, but now the waveband is labelled PhR instead of PAR in such cases.
- Track changes in ‘photobiology’ 0.10.15.
sec_axis_energy_J()to express wavelength as energy per photon, and
sec_axis_wl()to allow a secondary wavelength axis with wavelengths expressed using a different scale factor than in the main axis.
- Add scales
- This version requires R (>= 4.1.0) and ‘ggplot2’ (>= 3.4.0).
Package documentation web site at: https://docs.r4photobiology.info/ggspectra/
NOTE: Version 0.3.10 is on its way to CRAN.
Please raise issues concerning bugs or enhancements to this package through Bitbucket at https://github.com/aphalo/ggspectra/issues