Skip to contents

Geoms

Pattern-enabled geom layers, drop-in replacements for their ggplot2 counterparts.

geom_col_pattern() geom_bar_pattern()
Bar and column charts with pattern overlays
geom_rect_pattern() geom_tile_pattern()
Rectangle and tile charts with pattern overlays
geom_polygon_pattern()
Polygons with pattern overlays
geom_ribbon_pattern() geom_area_pattern()
Ribbon and area charts with pattern overlays
geom_density_pattern()
Kernel density estimates with pattern overlays
geom_violin_pattern()
Violin plots with pattern overlays
geom_sf_pattern()
SF polygon maps with pattern overlays

Scales

Map discrete variables to patterns.

scale_pattern_manual()
Map discrete variable to fill patterns
scale_pattern_discrete()
Automatically assign patterns to a discrete variable
scale_pattern_identity()
Use a variable's values directly as pattern names

Custom patterns

Register your own pattern functions.

register_pattern()
Register a custom pattern function
list_patterns()
List available built-in pattern names

Accessibility

Check and correct pattern-to-fill contrast.

pattern_contrast()
Compute WCAG 2.1 contrast ratio between two colours