Skip to content

Latest commit

History

History
46 lines (30 loc) 路 1.86 KB

readme.md

File metadata and controls

46 lines (30 loc) 路 1.86 KB

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.