Compute or draw rough arrows
Usage
rough_arrows(x0, y0, x1, y1, length = 0.25, angle = 30, code = 2, hand = NULL)
draw_rough_arrows(
x0,
y0,
x1,
y1,
length = 0.25,
angle = 30,
code = 2,
hand = NULL,
...
)Arguments
- x0, y0
Arrow starts.
- x1, y1
Arrow ends.
- length
Arrowhead length in inches, as in
graphics::arrows().- angle
Arrowhead angle in degrees.
- code
Integer code indicating where heads are drawn:
0for none,1at the start,2at the end,3at both ends.- hand
Hand-drawn geometry settings created with
hand().- ...
Graphics parameters passed to
graphics::lines().
Value
A list with x, y, and id components describing roughened
polyline geometry for arrow shafts and heads.
See also
Other rough drawing helpers:
rough_lines(),
rough_points(),
rough_polygons(),
rough_polypath(),
rough_rect(),
rough_segments()
Examples
plot(1:10, 1:10, type = "n")
draw_rough_arrows(8, 2, 2, 8, hand = human_hand())