Visually analyze each at-bat of a baseball game.

What you will learn

Get Instant Notification of New Courses on our Telegram channel.

scrape PITCHf/x data into an R session

plot pitch locations with ggplot

visualize pitch type and speed with ggplot

subset vectors in R

work with color in ggplot

facet in ggplot

label with geom_text

work with seq, lapply, unlist, and unique in R

save plots as png’s

write for loops in R

work with factors in R