New package

ggspectra 0.1.4 (1st release: new package)

All plot() methods should function as in package photobiologygg except that as annotation() is not used at all and has been replaced by newly defined ggplot2 statistics all calculations are done per group and PANEL. Only some aesthetics may need to be tweaked when grouping is used.

Specialized ggplot() methods for objects of the spectral classes in package photobiology are defined. They only differ from the method for data frames in that they set default mappings for x and y aesthetics according to the type of spectrum.

Several ggplot statistics are defined. They all expect as x aesthetic wavelength values expressed in nanometres: stat_color(), stat_peaks(), stat_valleys(), stat_wb_contribution()stat_wb_irrad(), stat_wb_mean(),   stat_wb_relative(), stat_wb_sirrad()stat_wb_total()stat_wl_strip()stat_wl_summary().

One ggplot geometry is defined: geom_spct().

One function for combining several ggplot objects: multiplot() and one function grouping a stat, a geom and a scale:   wl_guide().

The User Guide includes code examples with explanations but some of the statistics added today lack examples.

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 repository and package photobiologygg has been removed from the repository as it is incompatible with the current version of ggplot2.

Share with

Leave a Reply