Description Usage Arguments Examples
Graph pitchf/x data – 2 variables on different axes
1 2 3 |
pitcher |
Pitcher name or FanGraphs playerid. |
x |
The variable to go on the x-axis. |
y |
The variable to go on the y-axis. |
startdate |
Start date. Defaults to beginning of 2016. Format yyyy-mm-dd. |
enddate |
End date. Defaults to end of 2016. Format yyyy-mm-dd. |
pitchtypes |
Defaults to all. To include multiple pitch types, create an array: c("Four-seam fastball","Changeup","Breaking ball") |
stand |
Batter handedness. Defaults to both. |
color.code |
Whether or not to color code the pitches by pitch type. Defaults to TRUE. |
save |
Whether to save the graph. Defaults to FALSE. |
path |
Where to save the graph. Defaults to the current working directory. |
1 | ## Not run: pfx_graph()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.