get_map_data | R Documentation |
{sf}
.This function returns map data from DAWA. It is ready to use
with {sf}
functions. The returned dataframe has date-time columns to inform
when the information was last changed. It is returned in Europe/Copenhagen
time as that is the local time for the API. You can change that behavior by
setting Sys.setenv(TZ = "Your/Timezone")
.
get_map_data(type, cache = TRUE, ...)
type |
Defines the type of map data to request from DAWA. Run
|
cache |
Boolean to determine whether or not to cache the api call and
the function output. Default is |
... |
< |
Returns a data.frame
object that contains polygons (or points) for
the section provided.
Other Data functions:
get_data()
## Not run:
x <- get_map_data("regioner")
ggplot2::ggplot(x) +
ggplot2::geom_sf()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.