I would like to know how can i make an animated ggplot map? I'm trying to build an COVID Visualization over-time.
To show you some example, here's a code of my own:
#Mortes
ggplot() +
geom_sf(data=ontem, aes(fill=deaths), color="#FEBF57", size=.15, show.legend = TRUE) +
labs(title = "Mortes por COVID",size=8) +
scale_fill_distiller(palette = "BrBG",
name= "Mortes Confirmadas", limits=c(min(ontem$deaths),max(ontem$deaths)))+
theme_void() + theme(plot.title = element_text(hjust = 0.5))
options(scipen=10000)
I'd like to show the evolution of the COVID deaths over time. In the dataframe, there's a column named "date", which has the date time values like "2020-07-21".