I am trying to pull animation out of my data that is arranged into a "sf" "data.frame". This is being done as coded below.
p <- tm_shape(cwm3) +
+ tm_polygons(col = "Cases") +
+ tm_layout(scale = 1.5) +
+ tm_facets(by="Date", ncol = 3) +
+ tm_layout(legend.show = F)
tmap_animation(p, filename="covtm.gif", width=800, delay=40)
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), :
Viewport has zero dimension(s)
>
As you can see there is an error. The data is so bulky due to geometry of each country repeated for every day that it quite slows down my coding. I am attaching a screen shot also of how the whole thing looks like with this code.
But I am unable to pull animation.