ggpp 0.4.5

Version 0.4.5 includes fixes for compatibility with the upcoming  updates in ‘ggplot2’ version 3.4.0, and adds enhancements to geom_text_s() and geom_label_s(). The most significative is the computation of the justification from the position displacement, which works with any of the position functions exported by ‘ggpp’. Another significant change is the implementation of padding.

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

  • Update geom_text_s() and geom_label_s() to support justification computed from positions, with hjust = "position" and vjust = "position" as new defaults. (The current, very simple, approach will be further tested and if necessary improved for the next release.)
  • Update geom_text_s() and geom_label_s() to enable segment.size aesthetic and increase its default value, and add formal parameters point.padding, box.padding and min.segment.length to allow adjusting the length of the segments.
  • Add function dark_or_light().
  • Update position_nudge_center() for compatibility with ‘ggplot2’ (>= 3.4.0) and to ensure that every label gets nudged even if located exactly at the center (focus point of nudging).
  • Support the new ‘ggplot2’ aesthetic linewidth in geom_quadrant_lines() and geom_vhlines() when used together with ‘ggplot2’ (>= 3.4.0).

Documentation web site at 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 at Pull requests are also welcome.

Share with

Leave a Reply