Image
drawArrow
draws arrow segments from the first point to
the second over an Image
object. This operation is destructive:
it changes irreversibly the Image
object and cannot be undone.
drawArrow(image, pt1_x, pt1_y, pt2_x, pt2_y, tip_length = 0.1,
color = "red", thickness = 1)
An Image
object.
A numeric value or vector representing the x coordinates of the first end of each arrow.
A numeric value or vector representing the y coordinates of the first end of each arrow.
A numeric value or vector representing the x coordinates of the second end of each arrow.
A numeric value or vector representing the y coordinates of the second end of each arrow.
A numeric value or vector representing the length of each arrow's tip as a fraction of each arrow's length (default: 0.1).
A value or vector of any kind of R color specification compatible
with col2rgb
representing the color of each arrow (default:
"red").
A numeric value or vector representing the thickness in pixels of each arrow (default: 1).
This function does not return anything. It modifies image
in
place.