Description Usage Arguments Value Examples
Only considers results from major international races and summarises them by the number of race results at a particular level (wins, podiums, etc.) per race.
1 2 | nation_trend(nations, race_gender = c("Men", "Women"),
race_type = c("Distance", "Sprint"))
|
nations |
character vector of nation codes |
race_gender |
character; one of "Men" or "Women" |
race_type |
character; one of "Distance" or "Sprint" |
A named list with components:
plot
- ggplot2 plot object
nation_data
- raw data for each nation
nation_summary
- summarised data by nation
race_data
- race counts used for plotting
1 2 3 4 5 6 7 8 | ## Not run:
library(ggplot2)
p <- nation_trend(nations = c('USA','CAN','RUS','SWE'),
race_gender = 'Men',
race_type = 'Distance')
print(p$plot)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.