I was learning gganimate package.
I just created a anim
object and runned it. But it is not showing in Viewer panel. instead in console it shows it had created frame by frame images of my animation in the folder.
My code is here:
p <- ggplot(gapminder, aes(x = lifeExp, y = pop))+
geom_point()
anim <- p+
transition_states(country,
transition_length = 2,
state_length = 1)
i also tired saving it in gif format with anim_save()
function gganimate and it shows an error like this:
> anim_save("anim1.gif",anim)
Error: The animation object does not specify a save_animation method
In addition: Warning message:
file_renderer failed to copy frames to the destination directory
I don't know what to do. please help me with this.