About
Overview
POTUS Economic Scorecard is an interactive Shiny application that allows users to compare economic performance metrics across different presidential administrations. The app provides visual representations of various economic indicators, including:
- S&P 500
- Dow Jones Industrial Average
- NASDAQ
- Unemployment Rate
- Inflation Rate
The app is a static web page that runs entirely in your web browser using shinylive, so it can take a bit to load.
The app is best viewed in landscape mode on a mobile device.
Features
- Multiple Economic Indicators: Compare performance using S&P 500, Dow Jones, NASDAQ, Unemployment Rate, and Inflation Rate.
- Flexible Reference Points: Choose between “Inauguration Day” or “Day Before Election” as your reference point.
- Party Filtering: Filter presidents by political party.
- Customizable Time Period: Adjust the number of days to display for comparison.
- Data Export: Download the plot or raw data for your own analysis
How It Works
Historical economic data is downloaded daily and stored in the app GitHub repository. The app loads this data and calculates performance metrics relative to your chosen reference date. For market indices (S&P 500, Dow Jones, NASDAQ), performance is shown as percent change from the reference date. For economic indicators (Unemployment Rate, Inflation Rate), absolute values are displayed.
Data Sources
- Market data (S&P 500, Dow Jones, NASDAQ) is sourced from Yahoo Finance
- Economic indicators are sourced from FRED (Federal Reserve Economic Data)
Technology
This application is built using:
Local Deployment
To run the app locally:
Clone the repository:
git clone https://github.com/jhelvy/potus-econ-scorecard.git cd potus-econ-scorecard
Open the project in RStudio or run from the R console:
library(shiny) runApp()
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under a CC-BY-SA-4.0 license - see the LICENSE file for details.