maps2_ {ggswissmaps} | R Documentation |
Prepares the base of a map, starting from a data frame with longitude (long) and latitude (lat) coordinates, as a 'ggplot2' object
Description
Prepares the base of a map, starting from a data frame with longitude (long) and latitude (lat) coordinates, as a 'ggplot2' object
Usage
maps2_(data, mapping = ggplot2::aes_string(x = "long", y = "lat", group =
"group"))
Arguments
data |
data frame with longitude, latitude and group coordinates of a territory (polygons) |
mapping |
Aesthetic mappings, as character strings ( |
Examples
data(shp_df)
maps2_(data = shp_df[[1]])
[Package ggswissmaps version 0.1.1 Index]