xax / covid

Covid-19 data visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

covid

→ Have a look at the compiled visuals here.

Data visualization

Preparations and Dependencies

To run the visualization script you need Python (as of versions 3.6+), of course, and probably want to prepare the environment as follows:

  1. create virtual environment (optional)

    $ python -m venv ./.venv

    $ source ./.venv/bin/activate

  2. install dependencies

    $ pip install numpy matplotlib pandas

    $ pip install adjustText # (optional)

  3. install GUI visiualization backend (optional) To enable matplotlib to use Tk backend use a command appropriate for your system, e.g. one of these:

    • $ sudo apt-get install python3-tk # (Debian'ish)
    • $ sudo dnf install python3-tkinter # (Fedora-flavoured)
    • $ sudo pacman -S tk # (Arch)

Setup of data sources

  1. clone JHUCSSE repository

    $ git clone --depth=1 -b web-data https://github.com/CSSEGISandData/COVID-19.git

  2. clone CovidData repository

    $ git clone --depth=1 https://github.com/coviddata/coviddata.git

  3. retrieve GeoNames CountryDataGN database

    $ wget https://download.geonames.org/export/dump/countryInfo.txt

  4. show command line options help

    $ python3 ./covid2xa.py -h

Run the visualization script covid2xa.py

  • show all plots and create SVG files

    $ python ./covid2xa.py -a

  • create all plots as SVG files only

    $ python ./covid2xa.py -aX

About

Covid-19 data visualization


Languages

Language:Python 97.5%Language:Shell 2.5%