create_scale_bar: 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 scale bar.

Usage

1
create_scale_bar(lon, lat, distance_lon, distance_lat, distance_legend, dist_units = "km")

Arguments

lon, lat

longitude and latitude of the bottom left point of the first rectangle to draw

distance_lon

length of each rectangle

distance_lat

width of each rectangle

distance_legend

distance between rectangles and legend texts

dist_units

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

Value

Return a list whose elements are :

rectangle

a data.frame containing the coordinates to draw the first rectangle

rectangle2

a data.frame containing the coordinates to draw the second rectangle

legend

a data.frame containing the coordinates of the legend texts, and the texts as well

Author(s)

Ewen Gallic


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