ath_plot_dst: Sprint & Distance Results Plots By Athlete

Description Usage Arguments Value Examples

View source: R/ath_plot.R

Description

Faceted plots of results over time for one or several athletes using either FIS points, median percent back or finishing place as a measure of performance. Includes summaries by season or by season and technique.

Usage

1
2
3
4
5
ath_plot_dst(ath_names, races = c("maj_int", "fis"), by_tech = FALSE,
  collapse = NULL, use_rank = FALSE)

ath_plot_spr(ath_names, races = c("maj_int", "fis"), by_tech = FALSE,
  collapse = NULL, use_rank = TRUE)

Arguments

ath_names

character vector of athlete names

races

character; either "maj_int" for only major international results or "fis" for all results

by_tech

boolean; if TRUE summarise by both season and technique, rather than just season

collapse

named list of athletes to collapse into a single panel

use_rank

boolean; if TRUE use rank (finishing place) instead of median percent back or FIS points when races = "maj_int".

Value

List with three components,

  1. plot - ggplot2 plot object

  2. ath_data - raw athlete data

  3. ath_summary - athlete data summarised by season/technique

Examples

1
2
3
4
5
6
## Not run: 
p <- ath_plot_dst(ath_names = c('DIGGINS Jessica','BJORNSEN Sadie','CALDWELL Sophie'),
                  races = "maj_int")
print(p$plot)

## End(Not run)

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