Importar paquetes
library(readr) #leer archivos
library(plotly) #Gráficos interactivos
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
library(tidyverse) #paquete de ciencia de datos
## -- Attaching packages ------------------------- tidyverse 1.3.0 --
## v tibble 2.1.3 v dplyr 1.0.0
## v tidyr 1.0.2 v stringr 1.4.0
## v purrr 0.3.3 v forcats 0.4.0
## -- Conflicts ---------------------------- tidyverse_conflicts() --
## x dplyr::filter() masks plotly::filter(), stats::filter()
## x dplyr::lag() masks stats::lag()
library(gganimate) #animar gráficas
library(gifski) #Hacer GIF's
Leer las URL de datos del repositorio de JHU
url_conf <- "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv"
url_decesos <- "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv"