View source: R/plot_reg_population_type_abs.R
plot_reg_population_type_abs | R Documentation |
Main country of origin - Absolute value
plot_reg_population_type_abs(
year = 2022,
region = "Americas",
top_n_countries = 9,
pop_type = "REF",
show_diff_label = TRUE
)
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 |
a ggplot2 object
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.