-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transitioning on generated stats and object permanence #262
Comments
Transitions work now but there is no fade. Is this another bug or am I missing something? library(ggplot2)
library(gganimate)
library(ungeviz)
ggplot(mtcars, aes(disp, mpg)) +
geom_point() +
stat_smooth_draws(size = 0.5, aes(group = stat(.draw))) +
theme_bw() +
transition_states(stat(.draw), 1, 2) +
enter_fade() + exit_fade() |
That is a separate issue with how geom_smooth encodes its data... the alpha value is only used for the ribbon, not the line. I'll special-case geom_smooth to make it work as expected... in the meantime you can use enter_grow()/exit_shrink() for a similar effect... |
Fixed in bd551c1 |
Nice. Alternatively, these also work: + exit_recolour(colour = "#FFFFFF00") + enter_recolour(colour = "#FFFFFF00") |
yup, except it will block out the grid lines (barely perceptible, but still) |
oh, wait — you added an alpha to the colour... yeah that'll work |
I think I've discovered another issue with transitioning on generated stats. When trying to use
group
to manipulate object permanence, the transitions get disrupted.So far so good. Now, when I try to make lines fade in and out rather than transform, I end up with no animation.
However, things work fine if I do the same with an external data frame rather than a stat.
The text was updated successfully, but these errors were encountered: