YoVDO

Pitch Location Charts with PITCHf/x and ggplot

Offered By: Udemy

Tags

Data Visualization Courses Data Analysis Courses R Programming Courses Web Scraping Courses Sports Analytics Courses

Course Description

Overview

Visually analyze each at-bat of a baseball game.

What you'll learn:
  • 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

In this course, we make use of PITCHf/x data to create pitch location charts for a given baseball game. We break the game out into each at-bat and visualize the location, type, and speed of each pitch, the order in which the pitches were thrown, and the outcome of the at-bat.

In order to accomplish this, we will be taking a deep dive into ggplot. We will learn much about how to work with color, how to use aesthetics, and how to facet. We will also gain additional R skills, such as how to subset a vector and how to work with factors.

One should be able to complete the course, at a relaxed pace, in about three weeks. It is best if students already have a little bit of a background in R, dplyr, and ggplot, but it is not completely necessary.


Taught by

Charles Redmond

Related Courses

Applications of Linear Algebra Part 1
Davidson College via edX
Valoración de Futbolistas con el Método AHP
Universitat Politècnica de València via edX
Math behind Moneyball
University of Houston System via Coursera
Watch & Learn Baseball: Understand the Game Like a True Fan
Udemy
The Analytics Edge (Spring 2017)
Massachusetts Institute of Technology via MIT OpenCourseWare