Computes the circular mean direction and resultant length, returning a `geom_segment()` layer that can be added to an existing ggplot.
Usage
directedness_arrow(
data,
angle_col,
arrow_head_cm = 0.2,
colour = "gray",
size = 2,
color = NULL
)Examples
# Arrow showing mean direction and resultant length
hd <- derive_headings(cpunctatus[1:5], rule = "distal")
library(ggplot2)
ggplot() +
coord_fixed() +
add_circ() +
directedness_arrow(hd, angle_col = "heading")
