Learn R Programming

ggswissmaps (version 0.1.2)

maps2: A list with 8 '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.

Usage

maps2

Arguments

Format

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

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
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