View source: R/ggswissmaps_00funs.R
maps2_ | R Documentation |
Prepares the base of a map, starting from a data frame with longitude (long) and latitude (lat) coordinates, as a 'ggplot2' object
maps2_(
data,
mapping = ggplot2::aes_string(x = "long", y = "lat", group = "group"),
caption = "Boundaries: BFS GEOSTAT / swisstopo"
)
data |
data frame with longitude, latitude and group coordinates of a territory (polygons) |
mapping |
Aesthetic mappings, as character strings ( |
caption |
text to include in the lower right corner of the map (default: "Boundaries: BFS GEOSTAT / swisstopo") |
data(shp_df)
maps2_(data = shp_df[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.