Skip to contents

The functions gives a quick overview of the main source of displacement in terms of origin in the country

Usage

plot_ctr_origin_history(
  year = 2022,
  lag = 5,
  country_asylum_iso3c = country_asylum_iso3c,
  pop_type = Population.type,
  otherprop = 0.02
)

Arguments

year

Numeric value of the year (for instance 2020)

lag

Number of year to used as comparison base

country_asylum_iso3c

Character value with the ISO-3 character code of the Country of Asylum

pop_type

Vector of character values. Possible population type (e.g.: REF, IDP, ASY, OIP, OIP, OOC, STA)

otherprop

value set by default to .02 - used to merge origin as "Other"

Value

a ggplot2 object

Examples

plot_ctr_origin_history(year = 2022,
                        lag = 5,
                        country_asylum_iso3c = "MEX",
                          pop_type = c("REF", 
                                       "ASY", 
                                       "OIP", 
                                       "IDP" ),
                        otherprop = .02)