age_curve_graph: Create a graph for aging curves, based on particular stats

Description Usage Arguments Examples

Description

Create a graph for aging curves, based on particular stats

Usage

1
2
age_curve_graph(stat, playertype = "batter", startyear = 2000,
  endyear = 2016, save = FALSE, path = getwd())

Arguments

stat

The stat to generate the age curve for. Must be a metric available in the FanGraphs database.

playertype

Either "batter" or "pitcher". Defaults to "batter"

startyear

The first year from which to calculate the aging curve. Defaults to 2000.

endyear

The final year from which to calculate the aging curve. Defaults to 2016.

save

Whether or not to save the graph. Defaults to FALSE.

path

Where to save the graph. Defaults to the current working directory

Examples

1
## Not run: age_curve_graph(stat, playertype = "batter", startyear = 2000, endyear = 2016, save = FALSE, path = getwd())

BillPetti/fgrapher documentation built on May 5, 2019, 3:46 p.m.