Description Usage Format Source Examples
Data was retrieved by https://www.swisstopo.admin.ch/ and includes the shapefiles of the land, cantons and municipalities of Switzerland in 2017.
1 2 3 |
An object of class SpatialPolygonDataFrame
https://www.swisstopo.admin.ch/
1 2 3 4 5 6 7 | data(CantonShapefile)
plot(CantonShapefile)
# to get an idea about the crude population counts
spplot(pol_canton2017, "EINWOHNERZ")
# and population density
pol_canton2017$popdens <- pol_canton2017$EINWOHNERZ/area(pol_canton2017)
spplot(pol_canton2017, "popdens")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.