R Shiny App for visualizing Philadelphia Crime Data
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
eda
images
preprocess
www
.gitignore
LICENSE
Philadelphia-Crime-Visualizations.Rproj
README.md
fte_theme.R
global.R
multiplot.R
references.Rmd
server.R
ui.R

README.md

Philadelphia-Crime-Visualizations

R Shiny App for visualizing Philadelphia Crime Data

The app currently includes:

  • A Leaflet Map showing the locations of the incidents reported based on a selected crime type and year

alt tag

  • Monthly crime incident counts based on a selected year and crime type

alt tag

The data used in the app is hosted at Open Data Philly.

Prerequisites (Only needs to be done one time)

  1. Create a 'data' folder.
  2. Run 'preprocess/collectAndCleanData.R'. This will download all the 'Crime Part 1' csv files for 2006-2014, then pre-process the data. This only needs to be done once as the data will then be written to the 'data' folder (which is ignored via the .gitignore).

Run the App

Run the Shiny App via the shiny::runApp() command or via Rstudio GUI.