Authors

Coronavirus COVID-19 (2019-nCoV) Data Acquisition and Visualization in R

The R package aims at unifying COVID-19 datasets across different sources in order to simplify the data acquisition process and the subsequent analysis. The package implements advanced data visualization across the space and time dimensions by means of animated mapping to help and focus on making sense of the data.

Besides worldwide data, the package deals with fined-grained data for Italy, Switzerland and the Diamond Princess.

COVID-19 data are collected and merged with demographic indicators from several trusted sources including Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE); World Bank Open Data; World Factbook by CIA; Ministero della Salute, Dipartimento della Protezione Civile; Istituto Nazionale di Statistica; Swiss Federal Statistical Office.

The objective is to to simplify the data acquisition process and the subsequent analysis by making it easy for anbody to access a clean and usable dataset.

For non R users, the datasets are made available in csv format (updated daily) or on Kaggle (updated  weekly).

Quickstart

# Install COVID19
devtools::install_github("emanuele-guidotti/COVID19")

# Load COVID19
require("COVID19")

Data Acquisition

# Diamond Princess
d1 <- diamond()

# Global data
w1 <- world("country")       # by country
w2 <- world("state")         # by state

# Swiss data
s1 <- switzerland("country") # by country
s2 <- switzerland("state")   # by canton

# Italian data
i1 <- italy("country")       # by country 
i2 <- italy("state")         # by region 
i3 <- italy("city")          # by city

Data Visualization

geomap(w2, 
  map = "world", 
  value = "confirmed",
  legend.title = "Total Cases",
  caption = "Data source: JHU CSSE",
  nframes = 30+(2*length(unique(w2$date))),
  end_pause = 30)

Data Sources

COVID-19DemographicsWorldJohns Hopkins University Center for Systems Science and Engineering (JHU CSSE)World Bank Open Data, World Factbook by CIA.ItalyMinistero della Salute, Dipartimento della Protezione CivileIstituto Nazionale di StatisticaSwitzerlandRepository collecting the data published on the cantonal websitesSwiss Federal Statistical OfficeDiamond PrincessJohns Hopkins University Center for Systems Science and Engineering (JHU CSSE), WikipediaWikipedia

Try It out

Hackathons

Technologies

r

Devpost Software Identifier

256189