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

Support for running gganimate::animate() in parallel #403

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HenrikBengtsson
Copy link

Proof-of-concept support for running gganimate::animate() in parallel, cf. Issue #78.

Progress reporting can be handled too but that requires discussions.

## Adopted from example("animate", package = "gganimate")

library(gganimate)

anim <- ggplot(mtcars, aes(mpg, disp)) +
  transition_states(gear, transition_length = 2, state_length = 1) +
  enter_fade() +
  exit_fade()

future::plan("sequential")  ## default
t0 <- system.time(animate(anim))
print(t0)

future::plan("multiprocess", workers = 4L)
t1 <- system.time(animate(anim))
print(t1)

print(t0 / t1)
##      user    system   elapsed 
## 2.2802385 0.9121339 2.5819751

@phileas-condemine
Copy link

phileas-condemine commented Jan 22, 2021

@thomasp85 is this going to be merged ?

@rrmn
Copy link

rrmn commented Feb 20, 2021

@thomasp85 This is an awesome PR imo. What do you think about it?

@jzadra
Copy link

jzadra commented Jun 18, 2021

Is this still planned? It would be a great feature!

@chicodias
Copy link

this is FUTURE!!

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

Successfully merging this pull request may close these issues.

None yet

5 participants