在tm_animation中使用tm_facets'along'命令时,是否可以保留以前的时间步长?我有一个带有日期的点shapefile,我想按其时间戳记来绘制每个点,但要在先前的地图上构建,以便它在“沿”的每次迭代中都添加点,而不仅仅是绘制单个点并刷新每次迭代后映射。这是我当前的代码,它将绘制每个点,但不会保留先前的点。
(all <- tm_shape(focal_counties, bbox = bobox)+ tm_borders(lwd=1, col
= 'slategray4') + tm_fill(col="slategray3")+
tm_layout(legend.title.size = 0.9,
legend.text.size = 0.5,
legend.position = c(0.87,0.01),
legend.bg.color = "white",
legend.bg.alpha = 1,
legend.format = list(digits = 2),
bg.color = 'darkgrey')+
tm_shape(nc) + tm_borders(col = "slategray4", lwd = 2)+
tm_shape(emam_simple)+ tm_dots(size = 0.25, col = 'white', shape = 19)+
tm_facets(along = 'Begin',free.coords = FALSE))
tmap_animation(all, filename="all.gif", width=1200, delay=10)