Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.66 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.66 KB

Missing Migrants (2014-2019)

Description of the data set by Missingmigrants.iom.int (2020): “Missing Migrants Project tracks deaths of migrants, including refugees and asylum-seekers, who have died or gone missing in the process of migration towards an international destination. Please note that these data represent minimum estimates, as many deaths during migration go unrecorded.”

Pkgs

install.packages("data.table")
install.packages("ggplot2")
install.packages("gganimate")
install.packages("maps")
install.packages("sf")

Funcs

source("R/prep_data.R") 
source("R/anim_plot.R")
source("R/write_anim.R") 

Read & preprocess

mig <- prep_data("data/MissingMigrants-Global-2020-01-08T14-05-32.csv")

Create map

title <- 
  'Migration {frame_time}: Dead and missing persons'
subtitle <- 
  "Displayed is the weighted geographic centroid of the incidents per region and year."
caption <- 
  "© munterfinger.ch, author: @munterfi1, data: missingmigrants.iom.int"
gplot <- anim_plot(mig,title, subtitle, caption)

Save animation

gplot %>% write_anim("docs/migration_%s_%s.gif")

References

License