sjmurdoch / covidheatmap

Generate age demographic heatmap from UK Coronavirus Dashboard data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COVID-19 age demographics

The UK's COVID-19 dashboard plots a heatmap of cases by date, broken down into age brackets. This is very interesting but somewhat limited because it clips data above 800 per 100k people and (like the rest of the dashboard) only uses 8 colours.

To explore this data in more detail, this Jupyter notebook generates a similar heatmap, but using a continuous colour scale. This avoids the distortion resulting from clipping and binning, allowing more features of the data to be seen.

Like the official dashboard, this uses Plotly and so allows interactive scrolling and zooming.

Thanks to Pouria Hadjibagheri for the helpful discussion which led to this code being produced.

Run this code in a browser

Binder

About

Generate age demographic heatmap from UK Coronavirus Dashboard data

License:Apache License 2.0


Languages

Language:Jupyter Notebook 100.0%