plot.GameDayPlays: plot.GameDayPlays

Description Usage Arguments Details Value Examples

View source: R/GameDayPlays.R

Description

Visualize Balls in Play

Usage

1
2
3
## S3 method for class 'GameDayPlays'
plot(data, batterName = NULL, pitcherName = NULL,
  event = NULL, pch = 1)

Arguments

data

A GameDayPlays set with fields 'our.x' and 'our.y'

batterName

A character string containing the last name of a batter

pitcherName

A character string containing the last name of a pitcher

pch

A numeric

Details

Plots the balls in play from GameDay data. This function will plot (x,y)-coordinates with a generic baseball field plotted in the background. Other lattice options can be passed to xyplot().

Value

an xyplot()

Examples

1
2
ds = getData()
plot(ds)

frogman141/openWAR documentation built on Dec. 20, 2021, 8:52 a.m.