create_orientation_arrow: Creates a list containing coordinates for the orientation...

Description Usage Arguments Value Author(s)

View source: R/legende_cartes.R

Description

Using an object returned by the scale_bar() function, returns a list with all necessary coordinates to plot the North arrow.

Usage

1
create_orientation_arrow(scale_bar, length, distance = 1, dist_units = "km")

Arguments

scale_bar

result of create_scale_bar()

length

desired length of the arrow

distance

distance between legend rectangles and the bottom of the arrow

dist_units

units of distance "km" (kilometers) (default), "nm" (nautical miles), "mi" (statute miles).

Value

Returns a list containing :

res

coordinates to draw an arrow

coords_n

coordinates of the middle of the arrow (where the "N" will be plotted)

Author(s)

Ewen Gallic.


3wen/legendMap documentation built on May 5, 2019, 10:45 a.m.