This repository contains materials for my Closeread project, an analysis of the 2024 Dodgers-Padres playoff matchup. The project includes:
- A Closeread article that explores the series' launch angle metrics, with a particular focus on home runs.
- A Shiny app providing interactive visualizations and analysis of launch angle data. Most of the visualizations in the Closeread article were retrieved from the app.
- Supporting data, a data retrieval script, and visualizations to build the article.
You can view the published Closeread article here: Closeread Article
The Shiny app is hosted here: Shiny App
- Install the Closeread extension from https://closeread.dev/.
- Run
index.qmd
in RStudio
- Navigate to the
shiny
folder - Open
app.R
in RStudio and click Run App.
- Data: The data used in the analysis is stored in the
shiny/
folder. You can regenerate the dataset using theretrieve_data.R
script. - Visualizations: The visualizations, including those created by the Shiny app and others used in the Closeread article, are in the
visualizations/
folder.
This is my project for submission to the Closeread Prize. Big thank you to the Posit community for their help and putting this event together.
I would like to acknowledge Jim Albert, for his visualizations created on his blog post titled "Zack Wheeler’s Pitching in the 2023 NLCS" encouraged me to do a deep dive on the 2024 Dodgers-Padres playoff series. Albert's code used to generate that blog post's visualizations is found here.
I would also like to acknowledge Robert Frey, for his YouTube tutorial titled "Combine Video with a Savant Dataset!" and code demonstrated how to retrieve videos for each observation. Frey's code is available here.
This project is licensed under the MIT License.