View source: R/plot_ctr_origin_history.R
plot_ctr_origin_history | R Documentation |
The functions gives a quick overview of the main source of displacement in terms of origin in the country
plot_ctr_origin_history(
year = 2022,
lag = 5,
country_asylum_iso3c = country_asylum_iso3c,
pop_type = Population.type,
otherprop = 0.02
)
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" |
a ggplot2 object
plot_ctr_origin_history(year = 2022,
lag = 5,
country_asylum_iso3c = "MEX",
pop_type = c("REF",
"ASY",
"OIP",
"IDP" ),
otherprop = .02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.