location_count_compare: Graphs Pitch Locations for Several Counts

View source: R/location_count_compare.R

location_count_compareR Documentation

Graphs Pitch Locations for Several Counts

Description

Graphs the pitch locations for a specific pitcher for several values of the count

Usage

  location_count_compare(d,  Pitcher = pitch_id,
                             name = "",
                             side = "R",
                             ptype = "Fastball",
                             count_v = "0-0",
                             NCOL = 2)

Arguments

d

data frame containing Statcast data

Pitcher

MLBAM id for the pitcher

name

Name of the pitcher

side

Batting side, either "R" or "L"

ptype

Type of pitch, either "Fastball" or "Off-Speed"

count_v

Vector of count values of interest

Value

Constructs bivariate density estimates of the pitch location across the group of selected counts

Author(s)

Jim Albert


bayesball/CalledStrike documentation built on March 28, 2022, 12:12 p.m.