This R code will detail how to retrieve Pitch f/x data from the MLBAM website and then graph pitch location within ggplot2 showing pitch type with different colors.
We can then compare pitch location based on batter handedness or batting outcome of a specific batter.