Displaying a ggplot2 map with Animation

Derived from http://www.analyticsandvisualization.com/2014/01/animated-choropleths-using-animation.html

Loading required package: Quandl
Loading required package: xts
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Error: {"quandl_error":{"code":"QECx02","message":"You have submitted an incorrect Quandl code. Please check your Quandl codes and try again."}}
Execution halted

Error: object 'decades' not found
Execution halted

Show php error messages