title: Can I Use gganimate Right Now?
body: <p>I've been working on a project to animate a map. Below is the entire code:</p>
  
  <pre><code>#Adding the libraries; I was under the impression that gganimate would work up to this point
  library(ggmap)
  library(lubridate)
  library(ggplot2)
  library(dplyr)
  library(data.table)
  library(ggrepel)
  library(tidyverse)
  library(tibble)
  library(gganimate)
  
  #Importing the data using a .csv file; I also geocoded it, but that isn't part of this project
  CLCLT_Homes &lt;- file.choose(new = TRUE)
  origAddress &lt;- read.csv(CLCLT_Homes, header = TRUE, stringsAsFactors = FALSE)
  
  #Creating the base map using ggmap
  Minneapolis &lt;- ggmap(get_googlemap(center = c(lon = -93.2638397, lat = 44.979969),
                                     zoom = 12, scale = 2,
                                     maptype = "terrain",
                                     color = "color"))
  
  #Adding all the points, including point before and after the first "real" points
  Properties &lt;- data.frame(origAddress)
  Properties
  
  ghost_points_ini &lt;- tibble(
    Closing.Date = as.numeric(2004/8),
    lon = 0, lat = 0)
  ghost_points_fin &lt;- tibble(
    Closing.Date = as.numeric(2019/10),
    lon = 0, lat = 0)
  
  Minneapolis + geom_point(aes(x = lon, y = lat, color = Closing.Date, cumulative = TRUE), data = Properties, size = 1) +
    geom_point(aes(x = lon, y = lat, size = 1, frame = Closing.Date, cumulative = TRUE),
               data = ghost_points_ini, alpha = 0) +
    geom_point(aes(x = lon, y = lat, size = 1, frame = Closing.Date, cumulative = TRUE), 
               data = ghost_points_fin, alpha = 0)
  
  #Animating the entire thing
  gganimate(Minneapolis)
  </code></pre>
  
  <p>I finally finished this project only to get the following error:</p>
  
  <pre><code>Error: It appears that you are trying to use the old API, which has been deprecated.
  Please update your code to the new API or install the old version of gganimate
  from https://github.com/thomasp85/gganimate/releases/tag/v0.1.1
  </code></pre>
  
  <p>Before anything else, is gganimate still a useful option for animating maps in R? I realized after I got this error that the source I was using to learn how to animate (I'm not a student, just someone trying to learn on their own) is a couple years old, so I understand if it's out of date.  </p>
  
  <p>If gganimate is still useful, how can I use it?  I've followed the link given in the error, but it isn't very helpful in explaining how to correctly install the new gganimate package.  I've tried Googling for help as well, but I can only find vague answers that don't explain much.  </p>
  
  <p>If it is not useful, it seems that I would have to start all over since ggplot2 isn't a viable option, right?  Or is there another option which would allow me to use all my previous code and then just add on the new package that would animate it?</p>
  
  <p>I found <a href="https://medium.com/@mueller.johannes.j/use-r-and-gganimate-to-make-an-animated-map-of-european-students-and-their-year-abroad-517ad75dca06" rel="nofollow noreferrer">this</a> more recent source on animating maps, but from the looks of it I would have to change pretty much my entire code if I wanted to use that animation package.  Is this the (unfortunate) best route?</p>