percentile_graph: Graph percentiles for different stats for a particular player...

Usage Arguments

Usage

1
2
3
percentile_graph(player, player2 = "", playertype = "batter", year = 2016,
  stats = "standard", denom = "PA", mindenom = 200, save = FALSE,
  path = getwd())

Arguments

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

\item

denomThe 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"

\item

mindenomThe minimum number of whatever the denominator is to create the set of players to compare to. Default is 200 (plate appearances).

\item

saveWhether to save the graph. Defaults to FALSE.

\item

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

Graph percentiles for different stats for a particular player (or compare 2 players)


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