ggpp 0.4.3

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

Overview

Functions included in this update provide enhamcements on existing ones. Combining nudging with stack, jitter and dodge positions was not possible within the grammar of graphics as implemented in package ‘ggplot2’. This made it difficult to add data labels to some types of plots. Which for example, can be important in plots aimed at audiences outside academia. These functions are based, with permission, on code written by by M. Krassowski in the GitHub repository for ‘ggrepel’.

Other new position functions with names ending in _keep, for which normal counterparts exist, keep the original position in data, allowing the drawing of connecting segments with the geometries from package ‘ggrepel’ and with the updated geometries listed below.

Changes from version 0.4.2 the most recent CRAN release, are:

  • Add functions position_stack_keep()position_fill_keep(), position_jitter_keep(), position_dodge_keep() and position_dodge2_keep().
  • Add functions position_stacknudge(), position_fillnudge(),
    position_jitternudge(), position_dodgenudge() and position_dodge2nudge() based on code by M. Krassowski for position_stack_and_nudge().
  • Revise functions position_nudge_to(), position_nudge_center() and position_nudge_line() adding support for disabling keeping of the original positions.
  • Add geom_point_s() and geom_label_s() and update geom_text_s() renamed from geom_text_linked(). This is a code-breaking change with respect to the previous (unstable) version.
  • Update geom_plot(), geom_table() and geom_grob() to support plotting of segments when positions change, e.g., with nudging.

Warning

With 12 new and four partly rewritten functions there is quite a lot of new code in this update, so even if tested and checked, it is possible that bugs may have slipped through. Please, do report them if you encounter any.

Please raise issues concerning bugs or enhancements to this package through GitHub at https://github.com/aphalo/ggpp/issues. Pull requests are also welcome.

NOTE: The updated ‘ggpp’ (0.4.3) is on its way to CRAN.

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