tmap title does not show for tm_dots

Hello,
I would like to make the title for a spatial point dataframe visible ... but for some reasons it does not show up ...
Can anyone help with this?

library(tmap)
data(metro,  land)

tm_shape(land) +
  tm_raster("elevation", palette = terrain.colors(10), title="Title is displayed") +
  tm_shape(metro) +
  tm_dots(col = "red", title="title does not show")+ 
  tm_layout(legend.outside = TRUE,
            legend.title.size=1.5,
            legend.text.size=1,
            legend.outside.position = "bottom")

library(tmap)
data(metro,  land)

 tm_shape(land) +
   tm_raster("elevation", palette = terrain.colors(10), title="Title is displayed") +
  tm_shape(metro) +
  tm_dots(col = "red")+
    tm_add_legend(type = "fill",
                 labels="label here",
                 col="red",
                 title = "title here" 
                 )+ 
   tm_layout(legend.outside = TRUE,
             legend.outside.size=.3,
             legend.title.size = .8,
             legend.text.size = .5,
             legend.stack = "horizontal",
             legend.outside.position = "bottom")

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.