izenmania / tacoma-campaign-finance

A simple dashboard, built in R Shiny, providing a summary view of publicly disclosed contributions to, and expenditures by, candidate campaigns in the 2017 City of Tacoma election.
https://bigdatalittledata.shinyapps.io/tacoma_mayoral_finances/
Apache License 2.0
0 stars 0 forks source link

Tacoma Campaign Finances

This is a simple dashboard, built in R Shiny, providing a summary view of publicly disclosed contributions to, and expenditures by, candidate campaigns in the 2017 City of Tacoma election.

Requirements

Environment

The dashboard should run on any Shiny server. The current version was built in RStudio, and is hosted at shinyapps.io.

R Libraries

Data

Download the following files into the data/ directory:

Forthcoming will be a simple shell script to install this data, which can be run as a cron . The data is at a Socrata data portal, and can be acquired with R by API, but this is probably too slow for runtime loading.

Customization

Location

The current code is Tacoma-centric, but the PDC provides data for the entire state of Washington. The following modifications can be made to regionally refocus:

Note: the code currently assumes unique office/position pairs. As written, it will not correctly handle matching office/positions in different jurisdictions. For example, expanding to Pierce County may include multiple different races for MAYOR, and these will be conflated.