plot_reg_share: A simple chart to compare a population group between the...

View source: R/plot_reg_share.R

plot_reg_shareR Documentation

A simple chart to compare a population group between the Region and the rest of the world

Description

Simple treemap charts to do the comparison

Usage

plot_reg_share(year = 2022, region = "Americas", pop_type = "REF")

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

pop_type

Vector of character values. Possible population type (e.g.: REF, IDP, ASY, OIP, OOC, STA)

Value

plot a ggplot2 object

Examples

plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "REF")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "ASY")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "OIP")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "IDP")
plot_reg_share(year = 2022,  
                             region = "Americas",
                             pop_type = "STA")

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