tm_animate | R Documentation |
tm_animate
tm_animate(
by = "VARS__",
nframes = 60L,
fps = 20L,
play = c("loop", "pingpong", "once"),
dpr = 2,
...
)
tm_animate_slow(
by = "VARS__",
nframes = 60L,
fps = 2L,
play = c("loop", "pingpong", "once"),
dpr = 2,
...
)
by |
group by variable used to create the animation frames. Note: it is called |
nframes |
number of animation frames. This only app |
fps |
frames per second. Default: 30 for |
play |
how should the animation be played? One of |
dpr |
device pixel ratio. The ratio between the physical pixel density of a device and its logical pixel density. |
... |
passed on to |
tm_facets()
which is the core function, and tmap_animation()
used to save the animation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.