A thin re-export of vellum::vl_pattern() for building a pattern fill from an
arbitrary tile grob, when the ready-made pattern_stripe() family does not fit.
Like a gradient, the result is an unscaled fill value.
Usage
vl_pattern(
grob,
width = 0.1,
height = 0.1,
x = 0.5,
y = 0.5,
units = "npc",
extend = "repeat"
)Arguments
- grob, width, height, x, y, units, extend
See
vellum::vl_pattern().
Examples
dots <- vellum::circle_grob(r = 0.25, gp = vellum::vl_gpar(fill = "grey30"))
vl_pattern(dots, width = 0.08, height = 0.08)
#> <vellum_pattern> cell 0.08 x 0.08 "npc", extend = "repeat"
