The data was pulled from the Instituto Nacional de EstadÃstica y GeografÃa of Mexico. It is data that has been separated by regions, gender, selected countries of origin, and 3 select years: 2000, 2010, 2020.
Note: Some Countries’ names were kept in the original Spanish langauge. The following are the translations: “Estados Unidos Mexicanos” = Mexico (as a whole) , “Estados Unidos de América” = “United States of America” , “Japón” = “Japan” , “España” = “Spain” , “Otros” = Others
More information about the dataset can be found on the following link (although the information will be in Spanish): https://www.inegi.org.mx/app/tabulados/interactivos/?pxq=Migracion_Migracion_03_793b2477-4037-43d4-9a60-90fb2592cdbc&idrt=130&opc=t
## Warning: package 'ggplot2' was built under R version 4.4.3
## Warning: package 'readr' was built under R version 4.4.3
## Warning: package 'dplyr' was built under R version 4.4.3
## Warning: package 'lubridate' was built under R version 4.4.3
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ readr 2.1.5
## ✔ forcats 1.0.0 ✔ stringr 1.5.1
## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1
## ✔ lubridate 1.9.4 ✔ tidyr 1.3.1
## ✔ purrr 1.0.4
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
## Warning: package 'plotly' was built under R version 4.4.3
##
## 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