Previews

photobiology 0.9.2 (minor bug fixes)

Methods for tagging spectra have been edited so as to always add the same columns irrespective of the value of arguments. In some cases columns are filled with NAs. One additional column with the color for each waveband is now added.

backwards compatible

ggspectra 0.1.1 (2nd preview: new package)

New functionality

Added multiplot() function (unchanged from package photobiologygg). Improved stat_waveband().

Added color_guide(), waveband_guide().

Added ggplot() specialized methods for spectra, which use default mappings if mapping not explicitly supplied as argument to call.

Made plot() methods almost fully functional. "contribution" and "participation" summary values not yet implemented. Neither summaries for BSWFs. If requested these summaries will show as NaN (not a number) in the plots.

Compatibiliy with package photobiologygg

Compatibility with package photobiologygg is limited to plot() methods. These methods have the same formal arguments and produce very similar output for input that was valid in the old package. However, as all calculations of summaries and positions are done by group in ggplot stats they will work as expected in many situations where the old package would fail.

The stats and geom have been rewritten and will behave somehow differently than their older counterparts. New stats and functions are now provided. The annotate methods for spectra have all been replaced by stats. Function annotate_plot() is no longer available.

Please, report any problems you encounter, and suggest possible changes or additions to the functionality!

NOTE: Sources, and Windows binaries for R 3.2.x, are now available in the R-test repository.

Previews

I will list here the current preview versions available in the “test repository”. I will just highlight the biggest changes. The new packageggspectra was described in a separate post.

photobiology 0.9.1 (minor bug fixes)

As old programming wisdom tells, usually testing response to input values at a boundary situations is a good way of finding difficult bugs. Such testing revealed some bugs, that could occasionally cause trouble, and almost all edits had to do with fixing such bugs. Some of these could have been called features that did not fit with the normal behaviour of the R language. The main one, has been the way that “empty” results were signalled by means of NA. This is not how R is designed to work, as empty lists and arrays behave in a natural and correct way in loop constructs while NAs need exceptional handling. Still a few additional test cases are missing, and a few additional bugs may show up.

All other packages in the suite (compatibility updates)

photobiologyAll 0.4.2, photobiologyFilters 0.4.1, photobiologyInOut 0.4.0, photobiologyLamps 0.3.3, photobiologyLEDs 0.3.2, photobiologyPlants 0.3.3, photbiologyReflectors 0.3.2, photobiologySensors 0.3.3, photobiologySun 0.3.7, photobiologyWavebands 0.3.4

Because of the update to ggplot2 the vignettes of most packages had to be rebuilt using ggspectra instead of photobiologygg. A few interdependencies of the documentation were also removed. In addition the stricter error checking implemented in photobiology 0.9.x detected a bug in a data build script, which was fixed.

NOTE: Sources, and Windows binaries for R 3.2.x, are now available in the R-test repository.