Fix a documentation example that stopped working because of changes to ‘ggplot2’.
Although this update should not break any code, the plots created will in some cases differ slighttly from those created with earlier versions. These changes affect the formatting of axis labels, and are readily visible.
Colors may differ very slightly while stat_wl_strip() draws fewer rectangles (in most cases these changes are barely visible).
This update adds a new attribute to objects of class response_spct to enable storage of metadata to distinguish action spectra from response spectra. All other changes are tweaks to make use easier or are minor bug fixes, which do not add important new functionality.
Changes from version0.10.4 the most recent CRAN release, are:
Implement attribute "response.type" to distinguish between response spectra and action spectra stored in response_spct objects.
Add methods setResponseType() and getResponseType().
Add method drop_user_cols() to remove user-defined columns from spectra.
Add method collect2mspct() and rename method uncollect() into uncollect2spct().
Add convenience function spct_metadata() to query the value of metadata attributes.
Revise add_attr2tb() expanding support to all metadata attributes.
Revise smooth_spct() methods adding new parameter wl.range.
Revise compare_spct() function to accept scaled and normalized spectra with a warning (instead of triggering an error).
Make the pre-computed color data private.
Revise rbindspct() to gracefully handle duplicate member names in its input.
Revise smooth_spct() methods to fix bug in handling of strength in "custom" method.