ggspectra 0.3.9

R Package Update
Author

Pedro J. Aphalo

Published

2022-10-15

Modified

2022-10-15

Keywords

ggspectra pkg

Some of the code in this package is rather complex and contained syntax and constructs that were known for some time to be on their way to deprecation and removal in different packages from the ‘tidyverse’. Updating the package to the syntax used in current ‘ggplot2’ versions had been in my to do list for some time. Now the update had to be done, and it is now done.

There are almost no changes in behaviour or graphical output as a result of these changes. There were also problems caused by the update of ‘tidyselect’ to version 1.2.0 cascading down to ‘dplyr’ and ‘tidyr’ and affecting ‘photobiology’. Quite a bit of code had to be rewritten and in the process I replaced calls to dplyr::rename() and dplyr::select() by code written using only base R functions and operators.

A lot easier and faster to program was the addition of parameter geom to all autoplot() methods. This is an enhancement, that users are likely to notice and use.

library(ggspectra)
autoplot(sun.spct, geom = "spct") + theme_bw()

The changes from version 0.3.8, the current CRAN release, are:

Package documentation web site at: https://docs.r4photobiology.info/ggspectra/


NOTE: Version 0.3.9 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