Skip to contents

Create a ggplot2 boxplot displaying the distribution of a given variable. Does so by grouping the variable of choice by ECAC team, and displaying the value of variable for each ECAC game.

Usage

boxplot(var, gender = "women", verbose = TRUE)

Arguments

var

variable to plot

gender

'women' (default) or 'men'

Value

a ggplot2 boxplot object

Examples

boxplot(var="Goals", gender="women", verbose=FALSE)
#> Warning: Removed 5 rows containing non-finite values (stat_boxplot).

boxplot(var="Assists", gender="men", verbose=FALSE)
#> Warning: Removed 8 rows containing non-finite values (stat_boxplot).