kraje {RCzechia} | R Documentation |
Regions (kraje) of the Czech Republic
Description
Function returning data frame of NUTS3 administrative units for the Czech Republic as sf
polygons. It takes a single parameter resolution - high res (default) or low res polygons.
Usage
kraje(resolution = "high")
Arguments
resolution |
Should the function return high or low resolution shapefile? Allowed values are "high" (default) and "low". This parameter affects only the geometry column, all other fields remain the same. |
Details
Due to package size constraints the data are stored externally (and a working internet connection is required to use the package).
The dataset is based on RUIAN data by the Czech cadastral office. If necessary you can download the most up to date raw dataset in VFR format (a special case of XML which is understood by GDAL) on https://vdp.cuzk.cz/vdp/ruian/vymennyformat (in Czech only).
The data is current to June 2021 (i.e changes introduced by act 51/2020 Sb. are reflected). Downloaded size of high resolution shapefile is <1 MB.
Value
sf
data frame with 14 rows of 3 variables + geometry
- KOD_KRAJ
Code of the region.
- KOD_CZNUTS3
Code of the region as NUTS3 (kraj).
- NAZ_CZNUTS3
Name of the region as NUTS3 (kraj).
Source
© ČÚZK, 2021 https://vdp.cuzk.cz/
Examples
library(sf)
colors <- rainbow(14) # legend colors
hranice <- RCzechia::kraje("low")
plot(hranice["KOD_CZNUTS3"],
col = colors,
main = "Czech Regions",
xlim = st_bbox(hranice)[c(1, 3)] * c(1, 1.1))
legend("right",
hranice$KOD_CZNUTS3,
fill = colors,
bty = "n")