Skip to content

dkaumanns/covidplotter

Repository files navigation

covidplotter

Plot Johns Hopkins data of COVID-19 time series data for global and US cases, scaling by different factors.

This tool allows easy plotting of scaled transformations of COVID-19 time series data provided by CSSE at John Hopkins University (https://github.com/CSSEGISandData/COVID-19).

The tool checks a local clone of the time series data for updates and generates new plots, if necessary.

Scaling factors are defined per country in a separate JSON configuration file. The currently provided scaling factors are taken from English Wikipedia.

Plots

How to recreate the plots

Tested requirements

  • OS: Raspbian Buster
  • GNU bash 5.0.3(1)
  • GNU Make 4.2.1
  • Git 2.20.1
  • Python 3.7.3
    • matplotlib 3

Installation

git clone <repository url>
cd <repository url>
make dependencies

Usage

Delete output files:

make clean

Plot without updating the source data:

make -j 4

Plot after updating the source data:

make update -j 4

Using n threads with -j <n> is optional.

Notes:

  • In order to change the countries and/or scaling factors, modify the JSON configuration in etc/scale_map.json.
  • Run src/covidplotter.py for more options.

About

Simple plotter of Johns Hopkins data of COVID-19 time series

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published