plot_reg_rsd: Plot Chart on Refugee Status Determination

View source: R/plot_reg_rsd.R

plot_reg_rsdR Documentation

Plot Chart on Refugee Status Determination

Description

Show the main host and origin countries based on number of decisions

Usage

plot_reg_rsd(year = 2022, region, top_n_countries = 10, measure = "Recognized")

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

measure

this can be either: * Recognized * ComplementaryProtection * TotalDecided * RefugeeRecognitionRate * TotalRecognitionRate

Value

a ggplot2 object

Examples

plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "Recognized")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 5, 
                        measure = "ComplementaryProtection")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "TotalDecided")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "RefugeeRecognitionRate")


plot_reg_rsd(year = 2022,
             region = "Americas" ,
                        top_n_countries = 10, 
                        measure = "TotalRecognitionRate")


# plot_reg_rsd(year = 2022,
#              region = "Europe", 
#                         top_n_countries = 10, 
#                         measure = "Recognized")

Edouard-Legoupil/unhcrdatapackage documentation built on Nov. 6, 2023, 6:10 p.m.