spr_plot: Sprint Results Plot

Description Usage Arguments Value Examples

View source: R/spr_plot.R

Description

Bar plot by season summarising major international sprint race performance by counting how often an athlete reached the quaterfinals, semifinals, etc.

Usage

1
spr_plot(ath_names, by_tech = FALSE)

Arguments

ath_names

character vector of athlete names

by_tech

boolean; if TRUE split graph by technique

Value

A named list with components:

  1. plot - a ggplot2 plot object

  2. ath_data - raw athlete data

Examples

1
2
3
4
5
6
## Not run: 
library(ggplot2)
p <- spr_plot(ath_names = c('NEWELL Andrew','HAMILTON Simeon'))
print(p$plot)

## End(Not run)

joranE/statskier2 documentation built on May 19, 2019, 8:42 p.m.