powered by
Every element of the list is a 'ggplot2' graphic, corresponding to an element of shp_df.
shp_df
maps2
A list with 8 data frames with swiss territory boundaries (at various levels).
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)
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