Adds arrow pointing from a point in a specified angle

geom_navr_direction(position, angle, length = 1, ...)

Arguments

position

numeric(2) of X and Y position

angle

numeric angle in degrees (0-360)

length

length od the arrow to be drawm

...

additional ggplot values

Value

ggplot element

Examples

geom_navr_direction(c(0,0), 180, 5, color = "red")
#> mapping: x = ~x, y = ~y, xend = ~xend, yend = ~yend #> geom_segment: arrow = list(angle = 30, length = 0.25, ends = 2, type = 1), arrow.fill = NULL, lineend = butt, linejoin = round, na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity