Other data

Load necessary libraries

Let’s load some basic libraries to work with the data

renv::restore()
library(here)
library(dplyr)
library(ggplot2)
library(sf)
library(terra)
library(vapour)

Landkreise

dat <- sf::st_read('https://cloud.code-de.org:8080/swift/v1/AUTH_622a231224cb46c6982643e55e817c98/geojson/NI.geojson')
Reading layer `NI' from data source 
  `https://cloud.code-de.org:8080/swift/v1/AUTH_622a231224cb46c6982643e55e817c98/geojson/NI.geojson' 
  using driver `GeoJSON'
Simple feature collection with 45 features and 4 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: 342771.5 ymin: 5682893 xmax: 674214.6 ymax: 5971585
Projected CRS: WGS 84 / UTM zone 32N
dat |> 
  ggplot() + 
  geom_sf() + 
  theme_void()