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.
The dashboard should run on any Shiny server. The current version was built in RStudio, and is hosted at shinyapps.io.
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.
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.