View source: R/plot_reg_share.R
plot_reg_share | R Documentation |
Simple treemap charts to do the comparison
plot_reg_share(year = 2022, region = "Americas", pop_type = "REF")
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) |
plot a ggplot2 object
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.