Create a sketchy polygon grob with optional hachure fill
sketch_polygon_grob(
x,
y,
id = NULL,
roughness = 1,
bowing = 1,
n_passes = 2L,
seed = NULL,
fill_gp = gpar(),
outline_gp = gpar(),
fill_style = "hachure",
hachure_angle = 45,
hachure_gap = NULL,
fill_weight = 0.5,
fill_roughness = NULL,
fill_seed = NULL,
name = NULL,
vp = NULL
)A SketchPolygonGrob grob subclass.
Numeric npc [0,1] coordinates.
Group IDs (same semantics as grid::polygonGrob).
Sketch parameters for the outline.
gpar() for fill lines (col sets fill-line colour).
gpar() for the rough outline stroke.
Fill parameters
(hachure_gap in device inches; NULL picks 15% of the shape's smaller
drawn extent, clamped to [0.04, 0.4] inches).
Roughness of the fill strokes. NULL (default) ties it
to the outline as roughness * 0.5; set a number to control the fill
texture independently of the outline.
Seed for the fill strokes. NULL (default) derives it from
seed; set an integer to vary the fill pattern without moving the outline.
Passed to grid::grob().
Other grob-layer:
sketch_arrow_grob(),
sketch_band_grob(),
sketch_callout_grob(),
sketch_dotplot_grob(),
sketch_ellipse_grob(),
sketch_engrave_grob(),
sketch_path_grob(),
sketch_repel_grob(),
sketch_spray_grob(),
sketch_stroke_grob(),
sketch_wedge_grob()