← Back to all sparks
G

gghighlight

ANALYTICS
Velocity0.0

R package gghighlight by yutannihilation — release notes from GitHub.

A single-purpose ggplot2 extension that has spent six years tracking ggplot2 instead of growing.

ggplot2data-visualisationggplot-extensionupstream-compatr-package
Current state
gghighlight adds one verb to ggplot2: highlight the series matching a predicate and grey out the rest, with unhighlighted_params controlling how the shadowed layer renders and calculate_per_facet deciding whether the predicate evaluates within facets. The API settled at 0.2.0; the 0.5.0 release supports ggplot2 v4.0 including its ink and paper theme elements, and finally deletes gghighlight_point() and gghighlight_line().
Where it's heading
Two threads run through the history. One is a slow deprecation, from soft-deprecating the geom-specific functions at 0.1.0, to defunct at 0.3.0, to removed at 0.5.0 — a five-year removal cycle. The other is compatibility work: purrr 1.0.0, dplyr's across() deprecation, ggplot2 3.4.0, then 4.0. Genuine feature additions are rare and small, with line_label_type at 0.4.0 the last one. Note that 0.3.2's notes restate 0.3.1's n() item, so adjacent tags here overlap rather than each describing distinct work.
Prediction
The next release most likely absorbs further ggplot2 4.x changes, given that is what triggered the last three. Nothing in the entries points to a new highlighting capability.

Recent moves

  1. 1y ago

    ggplot2 v4.0 support; geom-specific functions removed

    Supports ggplot2 v4.0, including its ink and paper theme elements and a fix for the changed axis-title handling, and treats from_theme(foo %||% NA) as NA. gghighlight_point() and gghighlight_line() are removed outright, closing a deprecation opened at 0.1.0.

    View source ↗
  2. 2y ago

    Test expectations updated for upcoming ggplot2

    A maintenance release updating test expectations ahead of a new ggplot2 version. No package code changes.

    View source ↗
  3. 3y ago

    line_label_type adds geomtextpath and second-axis labelling

    line_label_type offers alternative labelling methods via geomtextpath or a second axis, the last substantive feature addition in the visible history. Ships alongside purrr 1.0.0 and ggplot2 3.4.0 compatibility fixes.

    View source ↗
  4. 4y ago

    Deprecated dplyr::across() usage removed

    Removes a deprecated use of dplyr::across() inside dplyr::filter(). A one-line upstream compatibility patch.

    View source ↗
  5. 5y ago

    Explicit NULL in unhighlighted_params preserved; aesthetic name clash fixed

    Preserves colour or fill when unhighlighted_params is given an explicit NULL, and fixes a longstanding miscalculation when data columns share names with aesthetics such as x. The n() support listed here already appeared in 0.3.1's notes, so this entry partly restates its predecessor.

    View source ↗
  6. 5y ago

    Discrete-scale labels and n() predicates

    Labels can now be added on discrete scales, and gghighlight() accepts n() so highlighting can key on group row counts. Both extend which plots the single highlight verb actually works on.

    View source ↗