Skip to contents

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

Usage

maps2

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

class(maps2)
#> [1] "list"
length(maps2)
#> [1] 8
names(maps2)
#> [1] "g1b15"      "g1g15_encl" "g1g15_li"   "g1g15"      "g1k15"     
#> [6] "g1l15"      "g1r15"      "g1s15"     
# str(maps2[["g1k15"]])

# By name
maps2[["g1k15"]]


# By index
maps2[[5]]