photobiology 0.9.5 (Bug fix and CRAN compatibility)

Version 0.9.4 was for one day In CRAN, but a serious bug in C++ code was reported by the CRAN team. This was a long-standing bug with a memory over-run that had remained unnoticed under MS-Windows. I fixed this and submitted a new version.

Version 0.9.5 contains no C++ code. Although when I replaced a couple of years ago the R code in two functions with C++ code the improvement in performance was large, now the slowdown with a couple of quickly written functions was not that much. The coming version 0.9.6 will not have C++ code, and after today’s performance tuning I am sure will be as fast in everyday use as version 0.9.4.

photobiologyWavebands 0.4.0 (Removed functionality and CRAN compatibility)

I decided that before submission to CRAN it was a good time to remove the little used functions for calculating certain ratios. They were convenience functions that turned to be in practice of little use.

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

NOTE: The packages are now available from CRAN.

R tips 3: ggpmisc adds new stats to ‘ggplot2’

Aim of the package

  1. Make it possible to use the grammar of graphics in some cases for which until now ad-hoc solutions were needed.
  2. Show how easy it can be to write new statistics for ‘ggplot2 (>= 2.0.0)’.

Case 1 (Stackoverflow question)

“Adding a 3rd order polynomial and its equation to a ggplot in r”

Re-stated problem

“Adding a label with the R^2 or adjusted R^2 value from any lm() fit for each group and panel of a ggplot”

“Adding a polynomial of any degree and its equation for each group and panel of a ggplot”

Continue reading