Learn R Programming

ggswissmaps (version 0.0.6)

maps2: A list with 16 ggplot2 objects of swiss territory boundaries, at various levels.

Description

Every element of the list is a ggplot2 graphic, corresponding to an element of shp_df.

Arguments

format

A list with 16 data frames with swiss territory boundaries (at various levels).

source

http://www.bfs.admin.ch/bfs/portal/fr/index/dienstleistungen/geostat/datenbeschreibung.html

Details

Columns are not all the same across data frames, but usually they have the following in common:
  • long. Longitude coordinate (x)
  • lat. Latitude coordinate (y)
  • group. A factor to be used to plot the polygons correctly (with ggplot2)

Examples

Run this code
data(maps2)
class(maps2)
length(maps2)
names(maps2)
# str(maps2[["g1k15"]])

# By name
maps2[["g1k15"]]

# By index
maps2[[5]]

Run the code above in your browser using DataLab