When Google first published its community mobility reports in 2020, I – like many others – rushed to try and do something with it. I decided to use it as a pretext to build a Shiny app with time controls on a Leaflet map. I was surprised how easy it was to implement a time series animation with Shiny by simply setting the animate
argument for the sliderInput
. I used cronR to create a cron job for the daily execution of a script that loads and processes the data. In this way, the app can show the most recent data and still fire up without too much delay.1
Even if you are – quite understandably – no longer much inclined to spend your precious time on COVID-19 data yet again, this dataset provides insight that often goes beyond the impact of the pandemic, e.g.: