1 2 3 | percentile_graph(player, player2 = "", playertype = "batter", year = 2016,
stats = "standard", denom = "PA", mindenom = 200, save = FALSE,
path = getwd())
|
player |
The player to examine. |
player2 |
Optional. A player to compare. |
playertype |
Either "batter" or "pitcher". Defaults to batter. |
year |
The year to graph. |
stats |
The stats to use. Options are "standard" (default), "slash" (triple slash), "bip" (ball-in-play types), "qoc" (quality of contact), "pfx" (pitchf/x stats), "eras" (ERA/FIP/xFIP, pitchers only), "luck" (BABIP/HR per FB \itemdenomThe type of denominator to set the minimum. Defaults to plate appearances/total batters faced depending on the player type. Other options are "Pitches", "AB" (batters), "BIPcount", "GB", "FB", "LD" \itemmindenomThe minimum number of whatever the denominator is to create the set of players to compare to. Default is 200 (plate appearances). \itemsaveWhether to save the graph. Defaults to FALSE. \itempathWhere to save the graph. Defaults to the current working directory. |
Graph percentiles for different stats for a particular player (or compare 2 players)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.