paralympic_1500 | R Documentation |
Compiled gold medal times for the 1500m race in the Olympic Games and the Paralympic Games. The times given for contestants competing in the Paralympic Games are for athletes with different visual impairments; T11 indicates fully blind (with an option to race with a guide-runner) with T12 and T13 as lower levels of visual impairment.
paralympic_1500
A data frame with 83 rows and 10 variables.
Year the games took place.
City of the games.
Country of the games.
Division: Men
or Women
.
Type.
Name of the athlete.
Country of athlete.
Time of gold medal race, in m:s.
Time of gold medal race, in decimal minutes (min + sec/60).
https://www.paralympic.org/ and https://en.wikipedia.org/wiki/1500_metres_at_the_Olympics.
library(ggplot2)
library(dplyr)
paralympic_1500 |>
mutate(
sight_level = case_when(
type == "T11" ~ "total impairment",
type == "T12" ~ "some impairment",
type == "T13" ~ "some impairment",
type == "Olympic" ~ "no impairment"
)
) |>
filter(division == "Men", year > 1920) |>
filter(type == "Olympic" | type == "T11") |>
ggplot(aes(x = year, y = time_min, color = sight_level, shape = sight_level)) +
geom_point() +
scale_x_continuous(breaks = seq(1924, 2020, by = 8)) +
labs(
title = "Men's Olympic and Paralympic 1500m race times",
x = "Year",
y = "Time of Race (minutes)",
color = "Sight level",
shape = "Sight level"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.