← Back to all sparks
G

ggh4x

INFRA · APIS
Velocity0.0

Handed its axis and legend guides to ggplot2 and legendry, and kept the facets

ggplot2data-visualizationfacetsdeprecationextension-packages
Current state
ggh4x is a set of ggplot2 extensions — nested and manual facets, per-facet scales, forced panel sizes, and statistics such as stat_difference() and stat_rle(). Its guide functions, once a substantial part of the package, are deprecated: 0.3.0 redirected users to ggplot2's own guide arguments and to the legendry package, and 0.3.1 made the deprecated functions return plain equivalents. What remains as this package's own territory is facetting and panel layout.
Where it's heading
The handover was signalled well in advance. Version 0.2.5 set the guides' lifecycle to 'questioning' and said outright they might migrate to a new package once ggplot2 overhauled its guide system, and 0.3.0 executed that eighteen months later. Much of the rest of the changelog is anticipatory compatibility work for upcoming ggplot2 releases, the standing cost of being an extension package. Releases carry playful codenames that say nothing about their contents.
Prediction
The deprecated guide functions are scheduled for removal in the next non-hotfix release, so expect that next; continued work should concentrate on facets and panel sizing, the areas neither ggplot2 nor legendry has absorbed.

Recent moves

  1. 1y ago

    Deprecated guides now return plain ggplot2 equivalents

    Described as a patch with no new features or bug fixes, but it completes the previous release's handover: guide_axis_nested() and its siblings now simply return the base ggplot2 guide. Existing code keeps running while quietly losing the ggh4x-specific behaviour.

    View source ↗
  2. 1y ago

    Guide functions deprecated in favour of ggplot2 and legendry

    ⚡ SPARK

    The release that redraws the package's boundary, deprecating nine guide functions in favour of base ggplot2 and the legendry package while adding at_panel() and strip_tag() to the facet side. Read against the 'questioning' lifecycle note in 0.2.5, this is a plan carried out rather than a reversal.

    View source ↗
  3. 2y ago

    CRAN note fix and two facet bug fixes

    A small release clearing a CRAN note by request, plus fixes in strip_vanilla() sizing and axis layout in facet_wrap2(). Routine upkeep between the lifecycle warning and the deprecation that followed.

    View source ↗
  4. 2y ago

    Anticipatory changes for ggplot2 3.5.0

    Preparation for ggplot2 3.5.0 alongside bug fixes in facet_nested() with margins and in mixing standard with facetted scales. The 3.5.0 guide-system overhaul it was preparing for is what made the following year's deprecation possible.

    View source ↗
  5. 3y ago

    Guides marked 'questioning'; render_empty and panel-area sizing

    Adds render_empty for leaving dataless panels blank, solo_line for nested facets, and total width and height control in force_panelsizes(), while setting the guides' lifecycle to 'questioning' with an explicit note that they might move to a new package. The clearest early signal of the split that arrived in 0.3.0.

    View source ↗
  6. 3y ago

    Semi-discrete manual scales and facet whitespace handling

    Adds scale_x_manual() and scale_y_manual(), which take categorical input and map it to continuous output, and teaches facet_manual() to drop axes and whitespace in more layouts. Typical of the package's facet-side work, which is the part that survived the later deprecation.

    View source ↗