## Animations generated in R version 4.0.3 (2020-10-10) using the package animation
library(magick)
library(animation)
library(ggplot2)
library(usmap)
for (myDate in vDates) {
    myMap <- plotDeathRateAtDate(tms, myDate, minRate, maxRate, 
        plotMap = F, "states", includeStates = vStates)
    plot(myMap)
}
ani.pause()
## R version 4.0.3 (2020-10-10)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Other packages: magick 2.5.2, animation 2.6, ggplot2 3.3.2, usmap 0.5.1