Giter VIP home page Giter VIP logo

covid19plot's Introduction

COVID-19 Plots


Plot COVID-19 cases based on publicly available data with some emphasis on the Hawaii cases. The project is mainly for my own purpose. I do not recommend to trust my plots too much for any of your decision making. Please refer more reliable sources such WHO, CDC, and other local authorities if you are not sure what you are looking at.

Getting Started

Prerequisites

It is a Python script. You need following packages to run the script.

I'm currently using the following versions.

  • Python 3.6.10
  • Pandas 1.0.2
  • Bokeh 2.0.0
  • Colorcet 1.0.0

Also, currently, I'm working in a directory with a structure like this.

.
├── covid19plot (This repository)
│  ├── csv/
│  ├── LICENSE
│  ├── make_covid19_plots.py
│  └── README.md
└── gist_covid19_plot
   └── index.html (Output file from the script)

The csv directory under this repository (covid19plot) contains CSV files for counties in State of Hawaii with the identical format to those of the JHU CSSE database. I'm trying to keep update them, but make sure you are fine with them. The update may suddenly stop. At some point, I'm planning to use the CSV files from the NYT repository.

After the script is executed it writes index.html under gist_covid19_plot folder.

I should make the structure more flexible, but currently it works for my purpose.

Installing

1. Create the output directory

mkdir gist_covid19_plot  # sorry it's hard-coded

2. Clone this repository

git clone https://github.com/monodera/covid19plot.git

Run the script

It's very simple. Just execute the script.

cd covid19plot
python ./make_covid19_plots.py

At the end, you should find index.html in the gist_covid19_plot directory you made in the step 1. Open it with a web browser.

What's in the output

You can see the example of the output at https://bl.ocks.org/monodera/78ce91f69e3bf5da21302807f373b5b6 .

The script produces 4 plots with interactive legends and tooltips. You can highlight or mute lines by clicking either legend entries and lines themselves. You can also see numbers and regions at a given date by hovering the mouse cursor.

Here are some explations on what are plotted.

1st panel from the top

The cumulative number of confirmed cases at each day.

2nd panel from the top

The cumulative number of deaths at each day.

Contributing

Please make any pull requests and put issues.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

References

covid19plot's People

Contributors

monodera avatar youtsumi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.