Document your hike with interactive leaflets and R

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Maarten Hermans is a sociologist and researcher at KU Leuven in Belgium and an avid hiker. He uses an Android app to track his location and elevation on his hikes, which means he can download his hike data in GPS Exchange Format. With this data and a few R packages, he was then able to create interactive topological maps including his route and photos along the way.

Hikes

Maarten used R's rgdal package to convert the GPS data into a list of waypoints, which he then plotted on an interactive topological map using the leaflet package from RStudio. Adding photos to the route was a little trickier: Maarten had to write an R function to extract the GPS coordinates of each photo from the EXIF metadata, before adding photo markers to the map using the addMarkers function from the leaflet package. Click the screenshot above to try the interactive version of the map, which is included in Maarten's tutorial (with R code) on how to create interactive maps from hiking data.

Maarten Hermans: Visualising your hiking trails and photos with My Tracks, R and Leaflet

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)