Cross-hatch fill pattern
Arguments
- angle
One or two hatch angles in degrees. If a single angle is supplied, the second pass defaults to
angle + 90.- density
Approximate line density in lines per inch. Larger values give denser fills.
- clip
When
TRUE, hatch endpoints stay on the shape boundary to reduce overshoot.- padding
Inset from the polygon edge in inches. Positive values leave a small gap between the fill pattern and the boundary.
Examples
plot.new()
plot.window(xlim = c(0, 10), ylim = c(0, 10))
draw_rough_rect(
2, 2, 8, 8,
col = "grey90",
fill_pattern = crosshatch(angle = c(30, 120), density = 9)
)