Parameters for Geometry-based Patterns

library(ggplot2)
library(ggpattern)

Geometry-based patterns

pattern_density

Given the same locations for the pattern elements, changing the pattern_density changes how far the elements extend towards their neighbours. It is a fraction, and usually requires values in the range [0, 1]. Not settable in the “polygon_tiling” pattern.

Plot of various patterns with different 'pattern_density' values.

pattern_spacing

pattern_spacing determines how far away individual elements are from each other.

Plot of various patterns with different 'pattern_spacing' values.

pattern_angle

Plot of various patterns with different 'pattern_angle' values.