Eyes on first wave with french open data — COVID-19

[This article was first published on Guillaume Pressiat, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Covidfrance shiny app

Covidfrance app was first developped beginning of April for family, friends (and myself) to automatically know every day how many cases there are in each department where they live, daily along this crisis.

This app download daily csv file from french site data.gouv.fr via its api and build the map updated with last day data.

  • Scientific colour maps palettes are used with scico package
  • Population’s ratio statistics are enabled with a switch to have both absolute and relative measures of epidemy.
  • Overlay of json layers is used with full opacity to render time progression visible
  • departments shapes are simplified and smoothed with smoothr (Chaikin method) and rmapshaper, really nice packages
  • to let the map prints each day on animated mode along the time gauge, a delay of 1.7 second is set. It’s a bit long but there are ~ 100 departments to look up each day! (“Almost 2 sec per day, not so much”).

Data availables are:

  • Hospitalisés: people in hospital on day i
  • En réanimation: people in intensive care unit on day i
  • Retours à domicile (cumulés): cumul of returned at home until the day i
  • Décès (cumulés): cumul of deceases at hospital until the day i

This open data csv is a good way to share data across data-focus people and journalists.

Then an app like this seems a good way to make data more accessible and eye friendly for people, with a geographical and “kinetic” approach.

Code for this app is quick code available here.

To leave a comment for the author, please follow the link and comment on their blog: Guillaume Pressiat.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)