Control pattern appearance with new aesthetics
masterTo customize how patterns look in your plots, ggpattern provides a set of pattern-specific aesthetics. These can be mapped to variables in aes() or set directly. Note that not all aesthetics apply to every pattern; you should check the specific pattern's vignette or the aesthetic use by pattern table for compatibility.
Commonly used aesthetics include:
pattern: The name of the pattern (e.g.,'stripe','crosshatch','circle','image','magick','gradient').pattern_alpha: Transparency of the pattern (range[0, 1]).pattern_density: Fraction of area the pattern fills (range[0, 1]).pattern_colour: Stroke colour.pattern_fill: Fill colour.pattern_angle: Rotation angle in degrees.pattern_spacing: Spacing between repetitions (range[0, 1]in npc units).pattern_filename: Filename or URL for image-based patterns.