Draws one or more hand-drawn arrows. The shaft is a quadratic Bezier (so it can curve) and the arrowhead is roughened and oriented to the curve's end tangent, both assembled in device inches so the head stays crisp and correctly angled on any panel shape. The arrowhead size can adapt to the shaft length.
sketch_arrow_grob(
x0,
y0,
cx,
cy,
x1,
y1,
roughness = 1,
bowing = 1,
n_passes = 2L,
seed = NULL,
arrow_length = NULL,
arrow_angle = 25,
arrow_type = "open",
arrow_head = NULL,
ends = "last",
gp = gpar(),
name = NULL,
vp = NULL
)A SketchArrowGrob grob subclass.
Shaft start in npc [0,1] (vectors, one per arrow).
Quadratic-Bezier control point in npc (vectors). For a straight arrow pass the chord midpoint.
Shaft end / arrow tip in npc (vectors).
Sketch parameters.
Arrowhead length in inches. NULL (default) adapts it to
the shaft length.
Half-angle of the arrowhead in degrees. Default 25.
"open" (default) draws a two-stroke V; "closed" draws a
filled rough triangle. Superseded by arrow_head; kept for back-compat.
Head style, one of sketch_arrowheads()
("triangle_open", "triangle_filled", "barb", "fishtail", "dot",
"bar"). NULL (default) derives it from arrow_type.
Which end(s) carry a head: "last" (default), "first", or
"both".
A grid::gpar() for the strokes (per-arrow col recycled).
Passed to grid::gTree().
Other grob-layer:
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_stroke_grob(),
sketch_wedge_grob()