Skip to content

Commit

Permalink
Compact challenge 3 text 20230831
Browse files Browse the repository at this point in the history
  • Loading branch information
damianooldoni committed Aug 30, 2023
1 parent e40e835 commit aba02bd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/sessions/20230831_visualize_spatial_data_in_r.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,15 @@
Using [mapview](https://r-spatial.github.io/mapview/):

1. Show number of moth species per UTM 1x1km grid cell on a map. The color of the cells should represent the number of moth species. Use the provided code to read and manipulate the source datasets. Display the legend. Set the contour of the polygons in red. What happens when clicking on an area? Beautiful, isn't?

2. Let's fine tune the previous map. Use "OpenStreetMap" map tiles only, set
the opacity of the areas to 0.9 and the contour lines to 0.2. Set `"number of
moth species"` as legend title and layer name. Hint:
mapview [advance vignette](https://r-spatial.github.io/mapview/articles/mapview_02-advanced.html)

3. Create a separate map with the municipalities of Pajottenland. Use black as line color. Set
layer name as `"municipality"`. Again, allow Open Street Map tiles only.
No legend. Set line width of the polygons to 1 and set opacity of the polygons to 0.

4. Combine the two maps. Make sure the hover text still shows the number of
moth species.

5. You have already installed leafem, so you should see by default the mouse coordinates (lat, lon) and zoom level on top left. If not, check how to add them in the [extra leaflet functionalities](https://r-spatial.github.io/mapview/articles/mapview_06-add.html) vignette. Add also the INBO coding club logo to the map with a link to the INBO coding club homepage: https://inbo.github.io/coding-club/. Link to the image is provided in the R code.


Expand Down

0 comments on commit aba02bd

Please sign in to comment.