← Back to all sparks
F

fillpattern

ANALYTICS
Velocity0.0

R package fillpattern by cmmr — release notes from GitHub.

Pattern fills for ggplot2, hardened against the ways users write sizes

ggplot2data-visualizationaccessibilitygraphicsr-package
Current state
fillpattern provides pattern fills — stripes, bricks, dots — for ggplot2 and base R graphics, aimed at figures that must stay legible in greyscale or to colour-blind readers. The 1.0.3 release is mostly defensive: size modifier strings ending in a colon no longer swap width for height, modify_size() reports invalid units instead of crashing and understands in, inches and cm, and a background colour bug in scale_fill_pattern() is fixed. The minimum R version rises to 4.2.0 for recent graphics engine features.
Where it's heading
Development is slow and entirely reactive to how the string-based size interface fails. The pattern across releases is the same: a user hits an edge — very small fill areas in 1.0.2, malformed unit strings in 1.0.3 — and the fix is either a graceful fallback or a clearer error. Leaning on R's newer graphics engine rather than reimplementing pattern rendering keeps the package small at the cost of raising its version floor.
Prediction
Expect further releases to stay in the same register: parsing and validation fixes for the size and unit interface, with the pattern set itself unlikely to change.

Recent moves

  1. 6mo ago

    Size string parsing fixed; invalid units now report instead of crash

    The parsing fixes are the substance: a trailing colon in a size modifier no longer applies the width to the height, and modify_size() handles invalid unit strings gracefully while gaining in, inches and cm. A scale_fill_pattern() background colour bug is fixed and the R floor rises to 4.2.0 for recent graphics engine features.

    View source ↗
  2. 2y ago

    Small fill areas no longer crash; min_size falls back to solid

    Fixes a crash on very small fill areas and adds min_size so those regions render as solid fills instead. A sensible degradation — a pattern in a two-pixel wedge conveys nothing anyway, and the alternative was a failed plot.

    View source ↗
  3. 2y ago

    fillpattern 1.0.1

    Lowers the installation requirement to R 4.1 for conda-forge compatibility — a packaging concession, later reversed when 1.0.3 raised the floor to 4.2.0.

    View source ↗