Skip to content

gridpattern v1.4.2

Latest

Choose a tag to compare

@trevorld trevorld released this 23 Jun 15:30
· 1 commit to main since this release

Breaking Changes

  • The "indented" (formerly "triangle") wave type now uses a wider stroke
    in order to better match the apparent stroke widths of the new wave types.
    Users who relied on the previous visual appearance should reduce density
    to compensate.

New Features

  • New "hatch" pattern with corresponding grid.pattern_hatch() and names_hatch() (#97).

  • New "line" pattern with corresponding grid.pattern_line().
    Unlike the "stripe" pattern which fills bands with solid colour,
    "line" draws stroked lines using the device's native line rendering,
    enabling all of R's built-in linetype values
    (including "dotdash", "twodash", and custom line types specified as hex strings per ?par).

  • The preexisting "wave" pattern gains ten new type values, a reverse parameter, a stagger parameter, and names_wave (#100, #101).

  • New mix_col() that mixes colors via Munsell color space using aqp::mixMunsell().
    Requires the suggested package {aqp}.

Bug fixes and minor improvements

  • Fixes a bug where geometry-based patterns (e.g. "stripe", "crosshatch", "wave")
    could silently disappear in small viewports when pattern_key_scale_factor
    was a relatively large value (#95).

  • The following "placeholder" pattern updates (#83):

    • The following placeholder pattern names are now serviced by placecats.com

      • "kitten" and "kittenbw"
    • The following placeholder pattern names are now serviced by placehold.co

      • "placeholder" and "placeholderbw"
    • The "placeholderbw" name now provides a pure black-and-white image (i.e. no grey).

  • Fixes a bug where the "wavy" (aliases "sine", "undy") and "indented" (alias "triangle") wave types had an effective wavelength of (n-1)/n times the requested wavelength, where n is the number of wavelength-spaced grid positions spanning the viewport.