I am trying to get a map from 2 different layers. The first one represent country borders, the second one are grid-cells over the same area.
Drawing the map itself isn't much of an issue :
ggplot() +
geom_sf(data=country, color = "black", fill = "white", size=1)+
geom_sf(data=grid, color = "black", fill = NA)
The code allow to get a map with the country borders with a thick black line and a white background. Then the grid layer is added with a thinner black line and a transparent color background to avoid hidding the country borders from the first layer.
I would like a 2-entry legend called "Legend", the first entry being the thick black lined/white background "Country border" and the second entry being the thinner black lines for "Grid border".
After trying for a few hours, I cannot get something that get close to this. I understand I need to tell R to link objets to their representation using AES statement, but each time I tried the whole map was changed (no borders, only grid-cell borders etc).
I'm not used to work wwith map in R so I don't really know how to provide a MWE in this case.
Thanks.