Skip to content

😷 a user-friendly COVID-19 dashboard written for Shiny, featuring on-the-fly map switching and digestible summaries

Notifications You must be signed in to change notification settings

solanto/covid-19-mapped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COVID-19 mapped

Written for JHU's EN.560.291 CaSE Coding course.

description

This app:

  1. imports the latest COVID-19 data from HealthData.gov and the Johns Hopkins Center for Systems Science and Engineering
  2. wrangles and geocodes the data
  3. generates choropleth maps and textual summaries from the data
  4. defines an interactive Shiny dashboard
  5. handles user input to switch maps and summaries on-the-fly

All data wrangling and view generation happens in global.r. Using these results, the Shiny app is then defined in ui.r and server.r. Finally, the app is styled as detailed in styles.scss, taking inspiration from Statistics Sweden's Kommuner i siffror (Municipalities in Numbers) visualization.

usage

online

Access the app online on shinyapps.io.

local

To run the app locally, you'll need to have an R interpreter installed. As well, to build dependencies, you will need Rtools.

Through an R shell, install the project's dependencies.

install.packages(c("shiny", "magrittr", "dplyr", "leaflet", "formattable", "sass", "remotes"))
library(remotes)
install_github("hrbrmstr/albersusa")

Clone the repository and run the following in an R shell whose working directory is the repository's root directory:

library(shiny)
runApp()

Alternatively, open the project in RStudio and run the app using the IDE's built-in Shiny capabilities.