The Johns Hopkins University provide data on the coronavirus crisis, reportin the daily number of confirmed cases, deaths and recovered patients.

Spatial Spreading of the pandemy

Data are available from 2020-01-22 to 2020-04-02 for 181 countries.

Mapping the data

The sf library, allows to produce map easily.

Mapping the data on a world map requires two merge the world shapefile and the Johns Hoppkins data as proposed in the following code. The matching between the two databases is done by creating a country_id identification (country name in lower case). The few mismatches in the 2 databases are idenified and corrected.

## Reading layer `TM_WORLD_BORDERS-0.3' from data source `/home/metienne/git/MarieEtienne.github.io/datasets/shape_dir/TM_WORLD_BORDERS-0.3.shp' using driver `ESRI Shapefile'
## Simple feature collection with 246 features and 11 fields
## geometry type:  MULTIPOLYGON
## dimension:      XY
## bbox:           xmin: -180 ymin: -90 xmax: 180 ymax: 83.6236
## epsg (SRID):    4326
## proj4string:    +proj=longlat +datum=WGS84 +no_defs
## [1] czechia          diamond princess iran             korea, south    
## [5] moldova          us              
## 181 Levels: afghanistan albania algeria andorra ... zimbabwe

Finally the three levels of severity are presented in the map below