Description Usage Arguments Examples
Create a graph for aging curves, based on particular stats
1 2 | age_curve_graph(stat, playertype = "batter", startyear = 2000,
endyear = 2016, save = FALSE, path = getwd())
|
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 |
1 | ## Not run: age_curve_graph(stat, playertype = "batter", startyear = 2000, endyear = 2016, save = FALSE, path = getwd())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.