Please see as an example an updated version of this tutorial as of 2024. It includes new functions and packages that may help to simplify the workflow:
rgdal is deprecated and not available any more on CRAN, so I use sf instead.
Don't need broom any more, as geom_sf() is available natively in ggplot2 (see #1).
Use mapSpain (shameless plug since I am the creator), that simplifies masively the handling of Canary Islands.
Other minor adjustments on the placement of legends, introduced after the release of ggplot2 v3.5.0.
I just wanted to share this piece of work with you, and don't pretend you to merge this PR, feel free to use the code of my fork if you consider it. Best
Dear @aaumaitre:
Please see as an example an updated version of this tutorial as of 2024. It includes new functions and packages that may help to simplify the workflow:
geom_sf()
is available natively in ggplot2 (see #1).I just wanted to share this piece of work with you, and don't pretend you to merge this PR, feel free to use the code of my fork if you consider it. Best