load_geodata | R Documentation |
Loads shapefiles of states (Länder: LAN), districts (Kreise, kreisfreie Städte: KRS), and municipalities (Gemeinde: GEM) for a given year. The shapefiles are processed and assigned to the global environment as vg250_lan
, vg250_krs
, and vg250_gem
. This function is useful if you want to use the shapefiles with other R packages to plot your data.
load_geodata(year)
year |
Integer. The year of geodata to load (must be between 1998 and 2022). |
No return value. This function assigns the spatial datasets vg250_lan
, vg250_krs
, and vg250_gem
to the global environment using <<-
.
# Load the geodata from year 2015 into the R environment
load_geodata(year = 2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.