Pause loop of a gif

Asked

Viewed 83 times

0

Hello! Guys, I have a problem stopping a GIF generated with the Animate function. As it will serve for a PPT presentation, I would like the GIF to be stopped on the last die so that comments can be made. My code at the moment is like this:

animate(graf, 200, fps = 35, duration = 30, width = 650, height = 420, renderer = gifski_renderer( loop = F))

anim_save("rank.gif", animation = last_animation(), path = wd)

Additionally, I would like to ask for tips to improve the fluidity and resolution of graphics.

The GIF may be consulted here

  • Have you tried using the argument loop=FALSE?

  • Already, yes. Maybe I didn’t express myself well when I did the post. I managed, after a few adjustments, to stop the loop. However, my loop freezes on the first die and I wanted it to be on the last.

1 answer

0


Adds wrap = FALSE the ggplot animation. For example

transition_states(gear, transition_length = 2, state_length = 1,wrap = FALSE)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.