I am using the animate function in R to successfully create the animation I require and it is displayed perfectly. However, I cannot save the output (called TodayMotion in the code example below) in a file (such as a Gif89a) so that I can distribute/store the animation. It sounds a simple problem but I have been unable to solve it.
I have attempted a wide range of solutions including the ImageMagick package which cannot load on my version of R. Also save.gif and the Magick package's write command, it says it does not recognise the file. And just to clarify I have tried 'magick::image_write(TodayMotion, path="magicksaveOption.gif")' & 'anim_save("TodayMotion.gif", TodayMotion)' and neither work.
ggm <- ggmap(UK) +
geom_point(data = Origin1,
aes(x = Long, y = Lat,
colour = group),
size = 2, alpha = 0.8) +
transition_time(time) +
shadow_wake(wake_length = .1)
TodayMotion <<- animate(ggm, height = 1500, width = 1500, fps =
20, duration = 20, start_pause = 10, end_pause = 20, rewind = T)
PS. in the environment TodayMotion is described as a "class gif_image"
I would like to end up with a saved gif (gif89a as it is animated) in my desired directory. (the image below is captured from the screen)