When plotting a ggplot graph with geom_sf the resulting plot has a white 'frame'. Is there an easy way in blogdown to set the color of this frame, i.e. to the background color of the blogdown theme.
The issue has been raised before, here , here, here, and here but I was wondering whether there is a more 'direct' solution in blogdown.
Many thanks. I am aware of the theme properties and I actually wasn't referring to the grey area under the map, but the white space above and below the plot (if you hover over the image it becomes clearer).
In the meantime I found this post which seems to do the trick.
Just as an addition - The solution with cowplot seems not to work when your plot includes an inset created with patchwork. The alignment gets messed up.