Description Usage Arguments Value Author(s)
View source: R/legende_cartes.R
Using an object returned by the scale_bar() function, returns a list with all necessary coordinates to plot the North arrow.
1 | create_orientation_arrow(scale_bar, length, distance = 1, dist_units = "km")
|
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). |
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) |
Ewen Gallic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.