This Shiny app provides statistical analysis and visualizations for MLB players based on Statcast data from the 2023 season. It is designed for high school, college, and professional players who want to compare their metrics to the average major leaguer. The app focuses on objective stats such as exit velocity and pitcher velocity for a more accurate comparison.
- Pitcher Stats Visualization: Explore the average MLB pitcher velocity and spin rates based on pitch type.
- Hitter Stats Comparison: Compare various statistics for qualified hitters, including exit velocity, launch angle, and sprint speed.
The data used in this app was obtained from Baseball Savant. Please make sure to select the necessary stats and player type filters to get the exact data.
See Data Files: pitcher_stats.csv hitter_stats.csv
- Choose the "Pitcher" tab to explore pitcher statistics visualizations.
- Navigate to the "Hitters" tab to compare stats for qualified hitters.
- Select specific tables, such as the default table or the top 30 hitters by exit velocity or sprint speed.
To run the app locally, follow these steps:
- Clone this repository to your local machine.
- Install the required R packages using
install.packages(c("shiny", "shinythemes", "tidyverse", "RColorBrewer", "DT"))
. - Load in MLB_Averages_App.R
- Run the app
Feel free to reach out if you have any comments, recommendations, or concerns about the app.
- LinkedIn: Hunter Mott
- Email: h-mott@outlook.com
This project is licensed under the MIT License.