ggpmisc 0.4.5

Version 0.4.5 includes a minor bugfix and an edit in vignette examples, to ensure compatibility with the upcoming version of package ‘ggpp’.

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

  • Decrease version of ‘gginnards’ in suggests.
  • Edit vignette examples to allow renaming a geom exported by ‘ggpp’ (retaining backwards compatibility).

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.5 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.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

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