maps2_: Prepares the base of a map, starting from a data frame with...

Description Usage Arguments Examples

Description

Prepares the base of a map, starting from a data frame with longitude (long) and latitude (lat) coordinates, as a 'ggplot2' object

Usage

1
2
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 (link{ggplot2::aes_string}). Defaults are x = "long", y = "lat" and group = "group" (these work with every element of the list shp_df of ggswissmaps)

Examples

1
2

Example output

Loading required package: ggplot2

ggswissmaps documentation built on May 2, 2019, 3:05 a.m.