fillpattern 1.0.5
New Features
- Other Aesthetics and Scale Options:
scale_fill_pattern() gains aesthetics and
... arguments. Use aesthetics = "pattern_fill"
for ‘ggpattern’ geoms, and pass name, labels,
breaks, limits, guide, etc.
through to ggplot2::discrete_scale() (#8).
- Inherited Colors:
fill_pattern(fg = NA) and
fill_pattern(bg = NA) now take their color from the outline
(col) of the shape being filled.
Bug Fixes
- Extension Geoms:
scale_fill_pattern()
no longer errors in geoms that don’t call
ggplot2::fill_alpha(), such as
ggalluvial::geom_alluvium(). The scale’s palette now
returns real grid::pattern() objects. In those geoms,
NA colors come from the shape’s outline color, or fall back
to black lines on white (#7).
- Color Lookup: The
colour aesthetic
lookup no longer depends on a fixed call-stack depth. It now finds the
data in the frame that called ggplot2::fill_alpha().
- Transparent Colors: A fully transparent
colour (e.g. ‘ggalluvial’’s default) is now treated as
missing, so patterns stay visible.
fillpattern 1.0.4
New Features
- Empty Pattern: Added an
"empty"
pattern that renders only the background color, for use as a baseline
alongside patterned fills (@ulysg, #5).
fillpattern 1.0.3
New Features
- Hex Logo: Added an official hex logo to the
package.
Dependency Changes
- R Version Requirement: Bumped the minimum required
R version from 4.1.0 to 4.2.0 to ensure compatibility with recent
graphics engine features.
Bug Fixes
- Size Parsing: Fixed a bug where size modifier
strings ending in a colon (e.g.,
"brick_8mm:") were parsed
incorrectly, applying the width dimension to the height.
- Unit Validation:
modify_size() now
gracefully handles and reports invalid unit strings instead of crashing,
and includes support for standard units like "in",
"inches", and "cm".
- Background Color: Fixed an issue in
scale_fill_pattern() where the background color was not
correctly calculated from the aesthetic mapping when a foreground color
was manually specified.
Testing & Development
- Code Coverage: Added a comprehensive test suite
using
testthat, achieving 100% code coverage.
- Badges: Added a code coverage badge to the
README.
fillpattern 1.0.2
- Fixed crash on very small fill areas.
- New parameter
min_size to use solid fills for small
areas.
fillpattern 1.0.1
- Allow installation on R 4.1 or later (for conda-forge
compatibility).
fillpattern 1.0.0