Skip to content
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

Animation fails when transient values are converted to strings #441

Open
frederikziebell opened this issue Jun 1, 2021 · 1 comment
Open
Labels

Comments

@frederikziebell
Copy link

frederikziebell commented Jun 1, 2021

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?

@thomasp85
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants