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 scale bar.
1 | create_scale_bar(lon, lat, distance_lon, distance_lat, distance_legend, dist_units = "km")
|
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) |
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 |
Ewen Gallic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.