Skip to content

Instantly share code, notes, and snippets.

@robwschlegel
Created August 23, 2017 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwschlegel/a307414ae5bcdd0c94802dc97c41e438 to your computer and use it in GitHub Desktop.
Save robwschlegel/a307414ae5bcdd0c94802dc97c41e438 to your computer and use it in GitHub Desktop.
# By default 'saveGIF()' outputs to the same folder
# the script where the code is being run from is located.
# For that reason one may want to manually change the
# working directory beforehand.
# setwd("somewhere else")
system.time(saveGIF(animate.polar.plot(df = PN), interval = 0.4, ani.width = 457,
movie.name = "polar_plot_PN.gif")) ## 262 seconds
system.time(saveGIF(animate.polar.plot(df = SP), interval = 0.4, ani.width = 457,
movie.name = "polar_plot_SP.gif")) ## 221 seconds
system.time(saveGIF(animate.polar.plot(df = KB), interval = 0.4, ani.width = 457,
movie.name = "polar_plot_KB.gif")) ## 183 seconds
# setwd("back to where you were")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment