This function is how ob_label
's vjust
and
hjust
values are recalculated automatically when the polar_just
parameter is specified.
Usage
polar2just(x, multiplier = NULL, axis = c("h", "v"))
Arguments
- x
angle. Can be a named direction (e.g., "north"), number (in degrees), degree
, radian
, or turn
- multiplier
distance
- axis
vertical (v) or horizontal (h)
Examples
a <- "northwest"
polar2just(a, axis = "h")
#> [1] 0.9242641
polar2just(a, axis = "v")
#> [1] 0.07573593