The changes from version 0.3.4, the current CRAN release, are:
- Track changes in ‘photobiology’ 0.9.30 to the value returned by
getWhereMeasured()which could in very specific cases trigger errors.
ggplot()methods so that the class and attributes of spectral objects are retained in the
datamember of the
ggobject. This allows use of methods
specific to spectra in data transformations in pipes passed as arguments to the
dataparameter of layer functions.
Example of what is now possible:
library(ggspectra) library(dplyr) library(rlang) ggplot(sun.spct) + geom_line() + geom_line(data = . %>% smooth_spct(method = "supsmu"), colour = "red", size = 1.2)
Note: When mapping is done within
ggplot(), layer functions only “see” a data frame with variables according to aesthetics. This means that
smooth_spct() cannot be used as a
Documentation web site at https://docs.r4photobiology.info/ggspectra/.
NOTE: The updated package is on its way to CRAN.
Please raise issues concerning bugs or enhancements to this package through Bitbucket at https://bitbucket.org/aphalo/ggspectra/issues
The main changes from version 0.4.21 the previous CRAN release, are:
- Minor revision to documentation.
- Update test cases for compatibility with ‘photobiology’ (>= 0.9.30) (to prevent benign CRAN check failure).
Documentation web site at http://docs.r4photobiology.info/photobiologyinout/.
NOTE: This version of the package is on its way to CRAN.
Please raise issues concerning bugs or enhancements to this package through Bitbucket at https://bitbucket.org/aphalo/photobiologyinout/issues
Changes from version 0.9.29 the most recent CRAN release, are:
- Add function
compare_spct()for comparisons between pairs of spectra based on summaries computed over multiple ranges of wavelengths.
- Add utility method
uncollect()for extracting all members of a collection of spectra.
- Add utility method
wl_thin()for reducing the storage size of
_spctobjects by removing data points in regions with only minor features.
how_measured<-()as an alternative syntax consistent with base R for setting and querying the attributes
what.measuredused to store metadata in spectral objects and collections.
- Add spelling synonyms for all normalization-related methods and functions like
- Add specialization for collections of spectra and spelling synonyms for
- Slightly changed printout: Revise
summary.generic_spct()to store the name of the summarized spectrum object and revise
print.summary_generic_spct()to display the name of the summarized object.
- Possibly code breaking: Revise
fscale()so that by default it sets the
scaledattribute only when the target value for re-scaling is equal to one.
- Fix bug in
- Add parameter
print()methods for spectra to display address when available.
getWhereMeasured()to consistently return a
data.frame, even when a geocode is missing.
- Add function
na_geocode(), a constructor for a valid geocode data frame with all fields set to
NAof correct modes.
- Revise all logic used for geocodes for consistency in returned and set values.
Some of the intermediate development versions, never submitted to CRAN, did break some code in package ‘ooacquire’. This version of ‘photobiology’ is fully compatible with the current version of ‘ooacquire’.
Documentation web site at http://docs.r4photobiology.info/photobiology/ includes all help pages, with output from all examples, and vignettes in HTML format.
NOTE: The updated package is in CRAN.
Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/photobiology/issues