I created a function for quickly creating reports for Major League teams that include heatmaps for hitters based on pitcher handedness and the type of pitch. The function isolates a team’s active roster, produces heatmaps using ggplot2 for each hitter, and then binds all the heatmaps together in a pdf....
[Read More]
Acquiring Baseball Stats from the NCAA with R
In the latest release of my baseballr package I’ve included a function that makes it easy for a user to pull data from the NCAA’s website for baseball teams across the three major divisions (I, II, III).
[Read More]