hist_graph: Graph a histogram of all players for a given stat; highlight...

Description Usage Arguments

Description

Graph a histogram of all players for a given stat; highlight selected player.

Usage

1
2
hist_graph(player, stat, playertype = "batter", year = 2016, denom = "PA",
  mindenom = 200, bins = 10, save = FALSE, path = getwd())

Arguments

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.


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