ggpp >= 0.5.0 updates

ggpp: Grammar Extensions to ‘ggplot2’

R Package Update
Author

Pedro J. Aphalo

Published

2022-12-05

Modified

2024-05-07

Keywords

ggpp pkg

Note

Since moving the site to Quarto I am updating this post to give a concise overview of changes. Differences between versions are listed in detail in the NEWS file.

Overview of changes

Version 0.5.7 brings helpers function wrap_labels(), as_npc(), as_npcx() and as_npcy() together with enhancements to geom_point_s(), geom_text_s(), geom_label_s(). geom_text_pairwise() and geom_label_pairwise(), mostly fixing bugs and adding new features from ‘ggplot2’ 3.5.0. Updated stat_fmt_table() allows application of functions to columns. Depends on ‘ggplot2’ >= 3.5.0.

Version 0.5.6 brings bug fixes.

Version 0.5.5 brings compatibility with ‘ggplot2’ >= 3.5.0. Adds support for angleaesthetic to geoms that are variations on geom_label(). Add support for error bars in stacked columns. Add example data sets.

Version 0.5.4 brings two new geometries geom_text_pairwise() and geom_label_pairwise() useful for adding to plots the outcomes from pairwise tests, and for highlighting ranges along the x axis.

Version 0.5.3 brings enhancements to stat_quadrant_counts() and stat_group_counts(). They are now both based on a compute panel function, which makes it possible to compute the same counts as in earlier versions but also the count for the whole panel. This in turn facilitates the creation of labels based on percents and fractions of the total number of observations. The default behaviour remains the same as in earlier versions, with labels for counts.

Version 0.5.2 brings additional enhancements to the density-based statistics. Mainly smoothing the rough edges left by the overhaul done in version 0.5.1 to these functions. A change to position_nudge_to() makes it possible to evenly spread positions to reduce overlaps. Most importantly add many unit tests to reach > 90% code coverage by tests (contribution of Daniel Sabanés Bové and his team).

Version 0.5.1 brings enhancements to the density-based statistics. They gain new features without changing their default behaviour allowing improved support of the annotation of volcano and quadrant plots. The new statistic stat_functions() implements plotting of multiple functions per layer and supports groups and facets.

Version 0.5.0 includes code-breaking enhancements to geom_text_s() and geom_label_s(). The most significative is a mechanism to selectively applying aesthetics, replacing use of separate aesthetics for segments or arrows. Please see Enhancing geom_text() and geom_label() for example plots. New functions stat_panel_counts() and stat_group_counts() for annotations showing the number of observations.

Note

Documentation web site includes all help pages, with output from all examples, vignettes in HTML format and a cheatsheet as a PDF file.

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