Given a panel from world_data(2000:2020, ...), animate the choropleth over
year via the optional gganimate package, or fall back to a faceted
small-multiple when it is not installed.
Arguments
- data
A panel map-ready frame (polygon or sf) with a
timecolumn.- fill
The fill column (unquoted).
- time
The time column (unquoted; default
year).- projection
Projection for the sf backend.
- ...
Passed to
world_map().
Examples
if (FALSE) { # \dontrun{
world_data(2000:2005, c(gdp = "NY.GDP.PCAP.KD")) |>
animate_world(gdp)
} # }
