title: Animating with ggplot and gganimate
body: <p>I'm trying to learn about animating plots with <code>gganimate</code>, and I'm wondering if someone has a tip for the problems I'm running into. In an effort to make things simple, I'm doing this by creating a new project in RStudio Cloud, installing the <code>ggplot2</code>, <code>gganimate</code>, and <code>datasauRus</code> packages, and following this example from <a href="https://towardsdatascience.com/animating-your-data-visualizations-like-a-boss-using-r-f94ae20843e3" rel="nofollow noreferrer">Isaac Faber</a>:</p>
  
  <pre><code>library(datasauRus)
  library(ggplot2)
  library(gganimate)
  ggplot(datasaurus_dozen, aes(x=x,y=y)) +
    geom_point() + 
    theme_minimal() + 
    transition_states(dataset,3,1) +
    ease_aes()
  </code></pre>
  
  <p>This creates a series of .PNG files but I cannot see an animation. Some seem to suggest that I can see it using the "print" function, but this does not work either. </p>
  
  <p>I have also been unable to export this as a .GIF, although I have followed the advice given <a href="https://stackoverflow.com/questions/51440496/using-gganimate-to-export-gif">here</a>. Specifically, the <code>magick</code> packages does not work for me (I get the same error about my images not being magick image objects), and when I try the following code:</p>
  
  <pre><code>p &lt;- ggplot(datasaurus_dozen, aes(x=x,y=y)) +
    geom_point() + 
    theme_minimal() + 
    transition_states(dataset,3,1) +
    ease_aes()
  anim &lt;- animate(p)
  anim_save("myfilename.gif",anim)
  </code></pre>
  
  <p>R tells me that The </p>
  
  <blockquote>
    <p>animation object does not specify a save_animation method.</p>
  </blockquote>
  
  <p>I've been unable to find examples or documentation that tells me how to specify a save_animation method. If anyone has advice on this topic, it would be greatly appreciated!</p>