gganimate
gganimate copied to clipboard
Animation fails when transient values are converted to strings
This works as expected:
tibble(i=1:3) %>%
ggplot(aes(x=0, y=0)) +
geom_text(aes(label=i)) +
transition_time(i)
however, this fails:
tibble(i=1:3) %>%
ggplot(aes(x=0, y=0)) +
geom_text(aes(label=paste0("value: ", i))) +
transition_time(i)
Is this a bug or how can I use intermediate values and modify them prior to showing them during a transition?
This is currently not possible, unfortunately... I'm still muling over how to do this best