Closed clauswilke closed 3 years ago
Some additional insight: Just executing the last line plot_base + transition_states(type, 1, 1)
multiple times will eventually lead to success. So the nondeterministic behavior seems to live in gganimate. And, here is an example where I was successful with the last animation, to show it works. I reduced the image resolution to 70x70 to be able to iterate more quickly.
I’m quite sure it has something to do with the tessalation done in transformr
I don't seem to be able to reproduce this any more so I'm closing - feel free to ping me if it remains a problem
I'm trying to animate transitions between sf polygons, and I'm observing that the animation code often (but not always) fails. Apologies for the somewhat lengthy reprex.
If I run this code multiple times, sometimes some of the animations render appropriately. Also, when they fail, the error message changes. (The isobanding algorithm is not guaranteed to return the exact same arrangement of polygon coordinates every time, so this may be part of the reason.) I ran the reprex three times to demonstrate this. I have seen the final animation succeed on occasion, but most of the time it fails.
Run 1
Created on 2019-01-24 by the reprex package (v0.2.1)
Run 2
Created on 2019-01-24 by the reprex package (v0.2.1)
Run 3
Created on 2019-01-24 by the reprex package (v0.2.1)