Visualising US COVID-19 Spread Graphically Using Mathematica

Dr Stuart Woolley
Dev Genius
Published in
5 min readJul 14, 2020

Graphical visualisations of data are far more accessible and intuitive to understanding than tables of numbers.

Image source: Author

Our aim in this article is to use a graphical representation of the mainland United States and visualise how the spread of COVID-19 infections has changed over time.

A Function to Retrieve and Process the Raw Data

We’ll be using the Johns Hopkins raw data — note than the ‘MM’ and ‘dd’ denote that the months and days respectively are padded with zeros if they’re less than 10, i.e. July is ‘09’ and not ‘9’ as per the standard date and number formatting specification among popular programming languages.

https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_ 19_data/csse_covid_19_daily_reports_us/MM-dd-YYYY.csv

Firstly, we need to load up the raw CSV data and convert it into a Dataset for subsequent manipulation. We’ll use a simple function to convert a passed in CSV with a single header line into a Dataset,

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in Dev Genius

Coding, Tutorials, News, UX, UI and much more related to development

Written by Dr Stuart Woolley

Worries about the future. Way too involved with software. Likes coffee, maths, and . Would prefer to be in academia. SpaceX, X, and Overwatch fan.

No responses yet

What are your thoughts?