17 Animations
17.1 Creating animations
tm_shape(slo_borders) +
tm_borders() +
tm_shape(slo_regions_ts) +
tm_polygons("gdppercap") +
tm_animate(by = "time")
17.2 Saving animations
tma1 = tm_shape(slo_borders) +
tm_borders() +
tm_shape(slo_regions_ts) +
tm_polygons("gdppercap") +
tm_animate(by = "time")
tmap_animation(tma1, "tma1.gif")