Main country of origin - Absolute value
Source:R/plot_ctr_population_type_abs.R
plot_ctr_population_type_abs.Rd
Main country of origin - Absolute value
Usage
plot_ctr_population_type_abs(
year = 2021,
country_asylum_iso3c = country_asylum_iso3c,
top_n_countries = 9,
pop_type = "REF",
show_diff_label = TRUE
)
Arguments
- year
Numeric value of the year (for instance 2020)
- country_asylum_iso3c
Character value with the ISO-3 character code of the Country of Asylum
- top_n_countries
Numeric value of number of main countries that the graph should display
- pop_type
Character value. Possible population type (e.g.: REF, IDP, ASY, OIP, OOC, STA)
- show_diff_label
logical to indicate whether or not adding the the label displaying difference in percentage compared to the previous year
Examples
plot_ctr_population_type_abs(year = 2020,
country_asylum_iso3c = "USA",
top_n_countries = 4,
pop_type = "REF",
show_diff_label = FALSE
)
#> Warning: There was 1 warning in `mutate()`.
#> ℹ In argument: `origin_data_prot = forcats::fct_explicit_na(origin_data_prot,
#> "Other nationalities")`.
#> Caused by warning:
#> ! `fct_explicit_na()` was deprecated in forcats 1.0.0.
#> ℹ Please use `fct_na_value_to_level()` instead.
#> ℹ The deprecated feature was likely used in the unhcrdatapackage package.
#> Please report the issue at
#> <https://github.com/edouard-legoupil/unhcrdatapackage/issues>.
## Same with 9 top countries and Asylum-seekers included
plot_ctr_population_type_abs(year = 2020,
country_asylum_iso3c = "USA",
top_n_countries = 9,
pop_type = "ASY",
show_diff_label = TRUE
)