Graph a histogram of all players for a given stat; highlight selected player.
1 2 | hist_graph(player, stat, playertype = "batter", year = 2016, denom = "PA",
mindenom = 200, bins = 10, save = FALSE, path = getwd())
|
player |
The player to examine. |
stat |
The stat to examine. |
playertype |
Either "batter" or "pitcher". Defaults to batter. |
year |
The year to graph. |
denom |
The 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" |
mindenom |
The minimum number of whatever the denominator is to create the set of players to compare to. Default is 200 (plate appearances). |
bins |
The number of bins on the histogram. |
save |
Whether to save the graph. Defaults to FALSE. |
path |
Where to save the graph. Defaults to the current working directory. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.