raster
packageMap of German states (Bundeslaender) from GADM through the raster
package
Formal class 'SpatialPolygons' (package "sp") with 4 slots
Berry Boessenkool, berry-b@gmx.de, May 2018
Use directly with:
load(system.file("extdata/DEU.rda", package="rdwd"))
Obtained with the code:
url <- "https://gisco-services.ec.europa.eu/distribution/v2/nuts/shp/NUTS_RG_03M_2021_4326_LEVL_1.shp.zip"
tf <- tempfile(fileext=".zip")
download.file(url, tf) # 0.9 MB
unzip(tf, exdir="misc/vign") ; rm(url, tf)DEU <- raster::shapefile("misc/vign/NUTS_RG_03M_2021_4326_LEVL_1.shp")
DEU <- DEU[DEU$CNTR_CODE=="DE","NUTS_NAME"]
raster::plot(DEU) ; axis(1, line=-1) ; axis(2, line=-1)
save(DEU, file="inst/extdata/DEU.rda", version=2)
tools::resaveRdaFiles("inst/extdata/DEU.rda", version=2)
addBorders
, EUR