Skip to contents

Main country of origin - Absolute value

Usage

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

Arguments

year

Numeric value of the year (for instance 2020)

region

Character value with the related UNHCR bureau - when left null, it will display the whole world

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

Value

a ggplot2 object

Examples

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
                              )