ggplot2

Analyzing Tour de France-data

In today’s blogpost I will look at historical data from the Tour de France. This data was used in the Tidytuesday series back in April, but I thought I’d take a closer look at it now as I currently suffer from Tour de France withdrawal symptoms (a July without Tour de France is like December without Christmas). First, let’s load the data and have a look at the structure.

Analyzing Strava data using R

Today I will look at how to connect to the Strava-API and do some quick analysis on the activity data. To start using the Strava-API, start by registering a developer app at strava.com. After doing this, you will get your API credentials, including your personal secret and client id. Here, I have added my secret to keyring using key_set before fetching it in the code below.