| format_coordinates | R Documentation |
Create a concise latitude/longitude label (e.g., 48.5^\circ N, 9.1^\circ
E) from a two element coordinate vector.
format_coordinates(coordinates, digits = 1)
coordinates |
A numeric vector of length two with latitude as the first element and longitude as the second element. |
digits |
Integerish scalar defining the number of decimal places used for rounding. Defaults to one decimal place. |
A character scalar with the formatted coordinate string.
# Coordinates for Tuebingen, Germany
format_coordinates(c(48.5216, 9.0576))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.