R statistical software is becoming increasingly popular for interactive spatial visualization—and for good reason. It brings together the best of both worlds: a powerful data science environment where just a few lines of code are often sufficient to produce sophisticated results. The bridge to modern web mapping is formed through state-of-the-art JavaScript libraries such as Leaflet, Mapbox, and MapLibre, allowing R users to create rich, interactive maps that can be explored in a web browser. This course teaches you how to create interactive maps in R using the tmap package, which provides a simple and consistent grammar for mapmaking. Using Leaflet as the default interactive backend, you will learn how to build dynamic maps directly from R that allow users to zoom, pan, and interact with spatial data. In addition, the course introduces the new tmap.mapgl extension, which enables high-performance web maps powered by Mapbox and MapLibre GL, making it possible to visualize large spatial datasets smoothly in the browser. By the end of the course, you will be able to create, customize, and publish interactive maps that can be shared online or embedded in dashboards and applications.
| New York (EDT) | London (BST) | Amsterdam (CEST) | |
|---|---|---|---|
| Session | 08:00–08:50 | 13:00–13:50 | 14:00–14:50 |
| Short Break | 08:50–09:10 | 13:50–14:10 | 14:50–15:10 |
| Session | 09:10–10:00 | 14:10–15:00 | 15:10–16:00 |
| --- | --- | --- | --- |
| Long Break | 10:00–11:00 | 15:00–16:00 | 16:00–17:00 |
| --- | --- | --- | --- |
| Session | 11:00–11:50 | 16:00–16:50 | 17:00–17:50 |
| Short Break | 11:50–12:10 | 16:50–17:10 | 17:50–18:10 |
| Session | 12:10–13:00 | 17:10–18:00 | 18:10–19:00 |
Day 1 (Wednesday 3rd of June)
- Introduction to tmap Slides
- The interactive view mode Slides
- Legends and other map components Slides
- Layer groups and controls Slides
Day 1 exercises Day 1 solutions
Day 2 (Thursday 4th of June)
- Review of exercises
- Interactive features (tooltips and popups) Slides
- Introduction to tmap.mapgl Slides
- 3D maps and high-performance web maps Slides
Day 2 exercises Day 2 solutions
Day 3 (Friday 5th of June)
- Review of exercises
- Exporting and sharing interactive maps Slides
- Integrating tmap with Shiny dashboards Slides
- Putting it all together: building a complete interactive map application Slides
Package home pages
Books
- *Spatial Data Visualization with tmap (in progress) Martijn Tennekes and Jakub Nowosad
- Geocomputation with R Robin Lovelace, Jakub Nowosad and Jannes Muenchow
- Spatial Data Science - With Applications in R Edzer Pebesma and Roger Bivand