Watch the youtube recording of the tutorial here
-
To show how Rshiny can open our science to end-users by allowing them to engage interactively with research outputs in web applications.
-
To provide an overview of the pros and cons of different R packages available for making interactive maps.
-
To learn how to make a basic interactive map and tips for speeding up when using large datasets.
Please install the following R packages and their dependencies:
install.packages(c('shiny', 'leaflet', 'sf', 'tmap', 'dplyr'))
Note that installing spatial packages (e.g. sf
) can be challenging on macs with an M1 chip and the Monterey OS
-
Presentation slides for the tutorial: 'intro-rshiny-mapping.html'
-
Script for making an interactive {leaflet} map: '001_leaflet-map.R'
-
Script for turning the {leaflet} map into a dynamic and share-able web app: '002_leaflet-app.R'
-
Shiny cheat-sheet for helpful tips: 'shiny-cheatsheet.pdf'
-
Spatial data (obtained from
rnaturalearth
R package)