简体   繁体   中英

Unable to add a tmap title in interactive viewing mode

I am using tmap on RStudio 1.4.1103.

When I attempt to add a title to my map using the tm_layout() function call, I am able to see the title in plotting mode, but when I switch to interactive viewing mode, the title disappears.

Reproduceable code and example image shown below:

library(tmap)

data("World")

ttm()

tm_shape(World) + tm_polygons("HPI") + tm_layout(title="Hello World!") 代码输出示例

Update: It appears this is an issue in the most recent version of tmap, as documented here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM