ggpp 0.4.4

Version 0.4.4 fixes a bug affecting most of the geometries in the package. Adding multiple layers using the same geom to the same plot would result in only one of these layers being rendered with others silently missing from the graphical output.

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

  • Fix bug caused by repeated grob and grob tree names.

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.

NOTE: Version 0.4.4 is on its way to CRAN.

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

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.

ggpp 0.4.2

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

The initial implementation and user interface of three apply statistics first introduced in ‘ggpmisc’ 0.3.6 has been revised to expand their usefulness and to make them less error-prone, while the
fourth one is now defunct.

Changes compared to ‘ggpp’ 0.4.1

Enhancements

  • Update stat_apply_group() to support summary functions like quantile() that return vectors with more than one value but shorter than the original number of observations.
  • Update stat_summary_xy() and stat_apply_group() to return NA x and/or y when .fun.x or .fun.y are not passed anargument. This is a code breaking change with respect to the previous (unstable) version.
  • Update stat_summary_xy() and stat_centroid() to support functions that return a one row data frame, like those defined in ‘ggplot2’ to be passed as argument to parameter fun.data of ggplot2::stat_summary(), such as mean_se, mean_cl_boot, etc.

Bugs fixed

  • Fix bug in stat_centroid(), stat_summary_xy() and stat_apply_group() resulting in the return of a long data frame with NA values instead of a data frame with fewer rows.
  • Remove stat_apply_panel() , as it was redundant. (Grouping can be modified per layer when needed.)

Warning

The default argument for geom in stat_centroid() is likely to change in the near future. Otherwise, the three statistics can be considered now stable.

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.2) is on its way to CRAN. The latest development version of the package can be installed from GitHub.

remotes::install_github("aphalo/ggpp")

ggpp 0.4.1

The package documentation web site at: https://docs.r4photobiology.info/ggpp/ includes a changelog.

Compared to ‘ggpp’ 0.4.0, the following changes have been introduced.

  • Update compute_just2D() and compute_just() to work with any value for the angle aesthetic, as in ‘ggplot2’ (>= 3.3.5).
  • Fix bug in geom_table() that would cause text left or right justified to be clipped when the text in a cell was very long (reported by dryguy). (Cell padding still needs improvement.)

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.1) is on its way to CRAN. The latest development version of the package can be installed from GitHub.

remotes::install_github("aphalo/ggpp")