ggpmisc 0.4.4

Version 0.4.4 includes enhancements. An issue raised in GitHub and a question in StackOverflow asked for the possibility of changing how fitted lines are plotted based on the “goodness” of the fit. In addition an old question in StackOverflow highlighted the need of more intuitive support for annotations based on stats::cor.test(). In addition to implementing these enhancements we continued adding support for flipping of statistics controlled through formal parameter orientation as implemented in ‘ggplot2’ since version 3.3.0.

Changes compared to version 0.4.3, the previous version in CRAN are:

  • Add new function stat_correlation() to annotate plots with correlation estimates, their P-value, a test statistic and n computed with stats::cor.test(). In addition to formatted character strings, numeric values are included in the returned data frame to facilitate conditional display.
  • Update stat_poly_line() to optionally add columns n, p.value, r.squared , adj.r.squared and method to the returned data frame. Code breaking: This statistic no longer supports fitting of splines with methods such as loess . This could potentially break user code, in which case the solution is to use stat_smooth().
  • Update stat_ma_line() to optionally add columns n, p.value, r.squared and method to the returned data frame. (As only a slope can be fitted, adj.r.squared is irrelevant.)
  • Update stat_quant_line() and stat_quant_band() to optionally add n and method columns to the returned data frame. (No exact equivalent of r.squared exists for quantile regression.)
  • Update stat_fit_residuals() to optionally return weighted
    residuals.
  • Update stat_peaks() and stat_valleys() to allow flipping with new parameter orientation.

Documentation web site at http://docs.r4photobiology.info/ggpmisc/ includes all help pages, with output from all examples, vignettes as well as a changelog in HTML format.

NOTE: Version 0.4.4 is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through GitHub https://github.com/aphalo/ggpmisc/issues

photobiologyInOut 0.4.23

Fifteen months since the previous release, this update adds support for one new spectrometer from LI-COR and multiple spectrometers from Wasatch Photonics. Updates to the tidyverse were triggering deprecation notices which are now avoided. Updates to package ‘photobiology’ revealed some minor bugs that are also fixed. Unnecessary progress messages during file realing and text scanning have been silenced.

The main changes from version 0.4.22 the previous CRAN release, are:

  • Add parameters na and ... to read_csi_data().
  • Add function read_wasatch_csv() supporting data import from long form CSV spectrum files saved by Wasatch’s Enlighten program.
  • Add function read_li180_txt() supporting data import from files saved by the LI-180 handheld array spectrometer from LI-COR.
  • Avoid spurious progress messages when reading files.
  • Track various changes in the tidyverse that deprecated functions used in this package.
  • Fix bugs in some imports from ‘photobiology’.
  • Move git repository from Bitbucket to Github.
  • Set up Github action for CRAN-checks on Windows, OS X and Ubuntu.
  • 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://github.com/aphalo/photobiologyinout/issues

ggpmisc 0.4.3

Version 0.4.3 contain the bug fix implemented in version 0.4.2-2, which did not make it to CRAN. (See bug listed under 1. in the post ggpmisc 0.4.2.)

New

  1. Add stat_ma_line() and stat_ma_eq() implementing support for major axis (MA), standard major axis (SMA), ranged major axis (RMA) and ordinary least squares (OLS) using function lmodel2() from package ‘lmodel2’.

Documentation web site at http://docs.r4photobiology.info/ggpmisc/ includes all help pages, with output from all examples, vignettes as well as a changelog in HTML format.

NOTE: Version 0.4.3 is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through GitHub https://github.com/aphalo/ggpmisc/issues

ggpmisc 0.4.2

During the major updates to 0.4.0 and 0.4.1 some bugs slipped through various tests. Versions 0.4.2, 0.4.2-1 and 0.4.2-2 contain fixes to these bugs. The bug fixed in 0.4.2-2 triggered an error only when R had been built with specific compilers.

Bugs fixed

  1. Error in stat_poly_eq() and stat_quant_eq() under some Linux builds of R, including when used in RStudio Cloud. This bug did not affect Windows.
  2. Failure to find after_stat() when instead of attaching the package with library(ggpmisc) statistics were called using the ggpmisc::<name> notation.
  3. Remove or convert to suggests some dependencies no longer needed after the split of ‘ggpp’.

Documentation web site at http://docs.r4photobiology.info/ggpmisc/ includes all help pages, with output from all examples, vignettes as well as a changelog in HTML format.

NOTE: Version 0.4.2-2 addressing all three bugs was not submitted to CRAN but instead the fix was released in version 0.4.3 now in CRAN.

Please raise issues concerning bugs or enhancements to this package through GitHub https://github.com/aphalo/ggpmisc/issues