thomasp85/gganimate

Vibrating data and transition_states

SebastianG4 opened this issue · 0 comments

Hi,

I've recently started playing around with gganimate for the first time and really like it! However, I've run into an issue that I am struggling to solve, at least in the way that I want. Specifically, I am trying to animate two geom_line plots using transition_states. For one line, the data for the entire line changes from each state to the next, and the resulting animation is very nice. However, for the second line, all data points except the newest remain constant for all following states, and for some reason, rather than appearing static in the animation, the points seem to vibrate or "shiver", seemingly at random times and x positions. I assume this has something to do with the tweening process, which I have almost no knowledge about. My current workaround is to set transition_length = 0, which removes the vibrations, but also removes the nice smooth transitions between states, making the whole animation feel much choppier. Is there some way to have my cake and eat it too? Here's an example gif with the "vibrations" that I mentioned.
animation_w_vibrations