I have been attempting to animate a raster stack using tmap::tmap_animation()
. Each layer covers the exact same geographic extent, but a different date. The output GIF animation is a single frame with multiple small plots.
Is it possible to create a gif animation of RasterStack using tmap
?
The only workaround I have found is to:
- convert each layer to an SF object
- give each new
sf
polygon object an attribute 'layer' representing the RasterStack layer it was pulled from rbind
thesf
objects together
Once completing the above steps it is possible to plot a gif animation, but it is painfully slow.