Tidy Tuesday #5

Tidy Tuesday 10/26/21

Yunyang Zhong
10-26-2021

I created this graph to help answer what is the average speed (km/h) for each gender and age to finish P’tiot Sparnatrail. I first filtered the data to only P’tiot Sparnatrail and then created a new variable representing hour using lubridate. After grouped by gender and age, average speed was computed using distance and average hour. The title was made bigger and the y-axis-title, speed, was made horizontal to make it easier to read. It seems that 30-year-old men and 37-year-old women are the fastest while 72-year-old men and 28-year-old women the slowest. For men, there is a general trend that as age goes up, speed goes down. But there is no such trend for women.