Skip to content

INWTlab/covid-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive COVID-19 Incidence Map for Germany

This repository contains the code, data, and documentation for creating an interactive map of local 7-day COVID-19 incidence rates in Germany, developed as part of a Master's thesis in collaboration with INWT Statistics and Freie Universität Berlin.

The project demonstrates how to model, process, and visualize official COVID-19 infection data from the Robert Koch Institute (RKI) using R and JavaScript.

The live version is available at:
https://www.inwt-statistics.de/blog/covid-19_karte_der_lokalen_7-tage-inzidenz_im_zeitverlauf


Overview

This project combines statistical modeling and web visualization:

  1. Modeling in R – uses the Kernelheaping package to generate smooth spatial incidence estimates from aggregated district-level data.
  2. ETL Processing in JavaScript – prepares model output for visualization.
  3. Web App – renders an interactive incidence map for exploration at the district level.

The method provides a realistic spatial representation of COVID-19 incidence, avoiding the artificial discontinuities of traditional choropleth maps.


Project Structure

Folder Description
model/ R code and data for incidence calculation
etl/ JavaScript scripts for data transformation
app/ Frontend application for interactive map visualization
docs/ Documentation (in English and German)

Prerequisites

  • R (with packages: dplyr, ggplot2, Kernelheaping, geojsonio, sf, jsonlite, etc.)
  • Node.js (portable version supported; no admin rights required)
  • Command line access (CMD, Terminal, or PowerShell)

Getting Started

To reproduce the full workflow, please refer to the detailed documentation in the docs/ folder — available in English and German.

In short:

  1. Run the R model to calculate local incidence estimates.

  2. Process the generated data using Node.js.

  3. Launch the app locally.


Methodology

The kernel heaping approach (see Groß & Rendtel, 2016; Rendtel et al., 2021) estimates realistic spatial density distributions from aggregated regional data.
It:

  • Smooths incidence rates across borders
  • Reduces artificial jumps at district boundaries
  • Enables re-aggregation into non-hierarchical regional systems
  • Identifies local hotspots more accurately

Data Sources

Source License Link
Robert Koch Institute (RKI) CC BY 4.0 https://github.com/robert-koch-institut/SARS-CoV-2-Infektionen_in_Deutschland
Federal Agency for Cartography and Geodesy (BKG) Data License Germany – Attribution – Version 2.0 https://daten.gdz.bkg.bund.de/produkte/vg/nuts250_1231/

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published