I have created a map in R using tmap, with a basemap, and want to save it as an image.
Whenever I use tmap_save to save it as a .png, I lose the basemap.
Presumably, this is because the basemap is not visible in plot mode and only in view mode.
Is there a good way of saving the map, with the basemap, as an image?
I have a workaround that involves saving it as HTML first, but it's not a great solution.