plot.do.openWARPlayers: plot.do.openWARPlayers

Description Usage Arguments Details Value Examples

View source: R/openWARPlayers.R

Description

Visualize WAR

Usage

1
2
## S3 method for class 'do.openWARPlayers'
plot(data, playerIds = c(431151, 285079), ...)

Arguments

data

A data.frame resulting from shakeWAR() of class do.openWARPlayers

playerIds

A vector of valid MLBAM player IDs present in the data argument

Details

Density Plot for WAR estimates

Value

a faceted densityplot

Examples

1
2
3
4
5
ds = getData()
# not run
openWAR = makeWAR(ds)
openWAR.sim = shakeWAR(openWAR)
plot(data=openWAR.sim, playerIds = c(431151, 502517, 408234, 285078, 518774, 285079))

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