histogram: Produce a ggplot2 Histogram

View source: R/histogram.R

histogramR Documentation

Produce a ggplot2 Histogram

Description

Create a ggplot2 histogram object displaying the distribution of a given statistic among all ECAC players of a single gender (women or men)

Usage

histogram(
  var,
  games = "all",
  players = "goalies",
  gender = "women",
  verbose = TRUE
)

Arguments

var

variable to plot

games

graphing 'all' (default), 'conference', or 'nonconference' games. Currently no support for 'nonconference' games

players

type of players stats to graph, 'goalies' (default) or 'skaters'

gender

'women' (default) or 'men'

Value

a ggplot2 histogram object

Examples

histogram(var="Saves", verbose=FALSE)
histogram(var="Goals", games="conference", players="skaters", gender="men", verbose=FALSE)

CharlesReinhardt/ecacr documentation built on May 14, 2022, 2:24 a.m.