When saving a plot as pdf with tmap the result file does not keep the Spatial information of the shapes or rasters used, is there a way to include it?.
Command used:
tmap_save(m_map,"result_map.pdf")
When saving a plot as pdf with tmap the result file does not keep the Spatial information of the shapes or rasters used, is there a way to include it?.
Command used:
tmap_save(m_map,"result_map.pdf")
tmap_save() function is for saving your maps as an image (for example in a png format or pdf format). If you want to store an spatial object you should use functions as st_write() . Or if you want to add information to your map you can manipulate the legend or add some text.