knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(unhcrdatapackage)

Population group in the region

plot_reg_treemap(year = 2022,  region = "Americas")

Plot World Comparison

plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "REF")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "ASY")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "OIP")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "IDP")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "STA")

Evolution Over Time

plot_reg_evolution(year = 2021,
                   lag = 5,
                   region = "Asia",
                   pop_type =  c( "REF", "IDP", "ASY", "OOC", "STA", "OIP"))

Plot Evolution of Population type per year

plot_reg_population_type_per_year(year = 2022,
                                              lag = 5,
                                     region  = "Americas",
                                     pop_type =   c("REF", "ASY", "IDP", "OIP", "STA", "OOC") )

Plot Population Origin-Destination within the region

plot_reg_origin_dest(year = 2022,  region = "Asia")

Plot Main country of Asylum in the Region

plot_reg_population_type_abs(year = 2022,
                              region = "Americas",
                              top_n_countries = 5,
                              pop_type = "REF",
                              show_diff_label = TRUE
                              )

plot_reg_population_type_abs(year = 2022,
                              region = "Americas",
                              top_n_countries = 5,
                              pop_type = "ASY",
                              show_diff_label = FALSE
                              )

Plot Biggest decrease in Refugee Population

plot_reg_decrease(year = 2021,
                  lag = 5,
                  topn = 5,
                  region = "Americas",
                  pop_type = c("REF", "ASY", "OIP"))

Plot Biggest increase in Refugee Population

plot_reg_increase(year = 2021,
                  lag = 5,
                  topn = 5,
                  region = "Americas",
                  pop_type = c("REF", "ASY", "OIP"))

plot_reg_increase(year = 2021,
                  lag = 5,
                  topn = 5,
                  region = "Asia",
                  pop_type = c("REF", "ASY", "OIP"))

Proportion of the population who are refugees, by country of origin (SDG indicator 10.7.4 )

plot_reg_prop_origin(year = 2022,  region = "Americas")

Decision on Refugee Status Determination

plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "Recognized")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 5, 
                        measure = "ComplementaryProtection")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "TotalDecided")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "RefugeeRecognitionRate")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "TotalRecognitionRate")


# plot_reg_rsd(year = 2022,
#              region = "Europe", 
#                         top_n_countries = 10, 
#                         measure = "Recognized")

Plot Evolution of Solutions in the Region

plot_reg_solution(year = 2022, 
                            region = "Americas",
                            lag = 10)

Mapping Population

plot_reg_map(  year = 2022,
                            region = "Asia",
                            topn = 5,
                            pop_type =  c("REF", "ASY", "OIP"),
                            projection = "Mercator",
                            maxSymbolsize = .25)


# plot_reg_map(  year = 2022,
#                             region = "WestAfrica",
#                             topn = 5,
#                             pop_type =  c("REF", "ASY", "OIP"),
#                             projection = "Mercator",
#                             maxSymbolsize = .25)

Refresh package



Edouard-Legoupil/unhcrdatapackage documentation built on Nov. 6, 2023, 6:10 p.m.