gganimate icon indicating copy to clipboard operation
gganimate copied to clipboard

Animation fails when transient values are converted to strings

Open frederikziebell opened this issue 3 years ago • 1 comments

This works as expected:

tibble(i=1:3) %>%
  ggplot(aes(x=0, y=0)) +
    geom_text(aes(label=i)) +
    transition_time(i)

test

however, this fails:

tibble(i=1:3) %>%
  ggplot(aes(x=0, y=0)) +
    geom_text(aes(label=paste0("value: ", i))) +
    transition_time(i)

test

Is this a bug or how can I use intermediate values and modify them prior to showing them during a transition?

frederikziebell avatar Jun 01 '21 19:06 frederikziebell

This is currently not possible, unfortunately... I'm still muling over how to do this best

thomasp85 avatar Sep 06 '23 07:09 thomasp85