Description Usage Arguments Value Examples
View source: R/race_snapshot.R
Distance and sprint race snapshot graphs for major international distance events.
1 2 3 | race_snapshot_dst(race_id, title = "", cutoff = 365 * 4, reduced = TRUE)
race_snapshot_spr(race_id, title = "", cutoff = 365 * 4, reduced = TRUE)
|
race_id |
integer race id |
title |
race title |
cutoff |
integer number of days in past to gether data from |
reduced |
boolean; if |
A named list with components:
plot
- ggplot2 plot object
cur_race
- raw results for race in question
ath_min
- data for athletes with too few races to plot range bars
ath_bars
- data for athlete range bars
block
- data frame for color blocks in plot
1 2 3 4 5 6 | ## Not run:
library(ggplot2)
p <- race_snapshot_dst(race_id = 7902)
print(p$plot)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.