Create artistic visualisations with your Strava exercise data
- Log in to Strava
- Select "Settings" from the main drop-down menu at top right of the screen
- Select "Download all your activities" from lower right of screen
- Wait for an email to be sent
- Click the link in email to download zipped folder containing activities
- Unzip files
install.packages(c("devtools", "mapproj", "tidyverse"))
devtools::install_github("marcusvolz/strava")
library(strava)
library(tidyverse)
data <- process_data(<gpx file path>)
p1 <- plot_facets(data)
ggsave("plots/facets001.png", p1, width = 20, height = 20, units = "cm")
p2 <- plot_map(data, lon_min = 144.9, lon_max = 145.73, lat_min = -38.1, lat_max = -37.475)
ggsave("plots/map001.png", p2, width = 20, height = 15, units = "cm", dpi = 600)
p3 <- plot_elevations(data)
ggsave("plots/elevations001.png", p3, width = 20, height = 20, units = "cm")
See the following gist: https://gist.github.com/marcusvolz/84d69befef8b912a3781478836db9a75
See the following gist: https://gist.github.com/marcusvolz/854f3bab1f63aa8a938b5026820682fa
Code to come.