Covid-19: Interactive Coronavirus Map with R and Shiny

Covid-19 uses the data from Johns Hopkins University to visualize the outbreak of the novel coronavirus. The data is available from this repository.

The app uses the mapbox API. If you have an API key, save it in a key.env file that looks like this:

MAPBOX_KEY=YOUR_SECRET_API_KEY

If you do not have such a key, the app will display a dark basemap from carto.

Run it on your machine

You can run Covid-19 on your own machine using the following code:

packages = c(
	"dotenv", "fresh", "highcharter", "htmltools", "leaflet", "leaflet.extras", "plotly",
	"quantmod", "readr", "sass", "sf", "shiny", "shinyanimate", "shinyWidgets", "stringr"
	)
install.packages(packages, repos = "https://cran.rstudio.com/")
library(shiny)
runGitHub("covid_shiny", "nicoFhahn")

Screenshots

alt text alt text

Acknowledgments

The folks over at RStudio with the SuperZIP demo which heavily inspired the layout of this app.

Questions/issuses/contacts

nico@f-hahn.de, or open a GitHub issue