arrow2: This is an alternative helper function that plots arrows.
It uses text() to print a character using a default font.
This way, it is possible to render different types of arrows.
Description
This is an alternative helper function that plots arrows.
It uses text() to print a character using a default font.
This way, it is possible to render different types of arrows.
Usage
arrow2(x, y, angle, size = 0.1, col = "black", chr = intToUtf8(10139))
Arguments
x
X-coordinate of the arrow.
y
Y-coordinate of the arrow.
angle
Angle in radians.
size
Similar to arrow.len parameter. Notice that we don't need
the arrow.lwd anymore
col
Color of the arrow.
chr
Character representing the arrow. You should provide the character
as escaped UTF-8.