A grid grob that draws its path as a tapered / pressure-varying hand-drawn
stroke. Unlike sketch_path_grob() (constant-lwd polylines), the line is
built from stroke_ribbon() polygons, so it can taper to a point, swell with
pressure, or vary like a broad calligraphic nib. Coordinates are npc [0,1];
roughening and offsetting happen in device inches inside makeContent().
sketch_stroke_grob(
x,
y,
id = NULL,
width = 0.03,
roughness = 1,
bowing = 1,
n_passes = 2L,
seed = NULL,
taper = "none",
taper_frac = 0,
pressure = NULL,
nib_angle = NULL,
jitter_w = 0,
cap = "round",
gp = gpar(),
name = NULL,
vp = NULL
)A SketchStrokeGrob (a grid grob subclass).
Numeric vectors of npc [0,1] coordinates.
Integer vector grouping coordinates into separate strokes (same
semantics as sketch_path_grob()). NULL treats all points as one stroke.
Full stroke width in inches. Default 0.03.
Sketch parameters for the centreline.
Passed to
stroke_ribbon().
A grid::gpar(); its col becomes the ribbon fill (the ribbon is
painted, not stroked), alpha is honoured.
Passed to grid::gTree().
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_polygon_grob(),
sketch_repel_grob(),
sketch_spray_grob(),
sketch_wedge_grob()