【发布时间】:2019-06-19 11:47:14
【问题描述】:
我使用 tmap:: tm_facets 和自定义面板标签创建了一个动画多面图。如何避免用于分面的参数显示为附加标题?我只想要面板中的自定义标签。
最小示例:
rm(list=ls(all=TRUE))
library(tmap)
library(spData)
urb_anim = tm_shape(world) + tm_polygons() +
tm_shape(urban_agglomerations) + tm_dots(size = "population_millions") +
tm_facets(along = "year", free.coords = FALSE) +
tm_layout(panel.labels = c("custom label1", "custom label2"))
当我尝试从此处重现动画地图的示例时:https://geocompr.robinlovelace.net/adv-map.html 我也没有像示例中那样在面板中获得标题,而是在左上角的绘图之外。
【问题讨论】: