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
- Monthly crime incident counts based on a selected year and crime type
The data used in the app is hosted at Open Data Philly.
- Create a 'data' folder.
- 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 Shiny App via the shiny::runApp() command or via Rstudio GUI.