knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(unhcrdatapackage)
Below is the library with all Country Focused questions organised around the 7 key questions!
plot_ctr_keyfig(year = 2022, country_asylum_iso3c = "COL")
# plot_ctr_treemap(year = 2021, country_asylum_iso3c = "USA", pop_type = c("REF", "ASY") )
p <- plot_ctr_population_type_per_year( year = 2022, country_asylum_iso3c = "PAN", lag = 5, pop_type = c("REF", "ASY", "OIP", "OOC", "STA", "IDP" ) ) p ## Raw data can always be accessed with #knitr::kable(ggplot2::ggplot_build(p)$plot$data )
plot_ctr_population_type_abs(year = 2020, country_asylum_iso3c = "USA", top_n_countries = 4, pop_type = "REF", show_diff_label = FALSE ) ## Same with 9 top countries and Asylum-seekers included plot_ctr_population_type_abs(year = 2020, country_asylum_iso3c = "USA", top_n_countries = 9, pop_type = "ASY", show_diff_label = TRUE )
plot_ctr_population_type_perc(year = 2021, country_asylum_iso3c = "BRA", top_n_countries = 9, pop_type = "REF" ) plot_ctr_population_type_perc(year = 2021, country_asylum_iso3c = "BRA", top_n_countries = 9, pop_type = "ASY" )
# plot_ctr_diff_in_pop_groups(year = 2022, country_asylum_iso3c = "ROU", pop_type = c("REF", "ASY") )
plot_ctr_origin_history(year = 2022, lag = 5, country_asylum_iso3c = "MEX", pop_type = c("REF", "ASY", "OIP", "IDP" ), otherprop = .02)
# plot_ctr_destination(year = 2021, country_origin_iso3c = "COL", pop_type = c("REF", "ASY") )
plot_ctr_origin_recognition(year = 2022, country_origin_iso3c = "VEN", top_n_countries = 10, measure = "RefugeeRecognitionRate", order_by = "TotalDecided" )
# plot_ctr_pyramid(year = 2022, country_asylum_iso3c = "COL", pop_type = c("ASY", "REF") )
# plot_ctr_location(year = 2022, # country_asylum_iso3c = "COL", # pop_type = c("ASY", "REF", "OIP")) # # plot_ctr_location(year = 2021, # country_asylum_iso3c = "COL", # pop_type = c("IDP")) # # plot_ctr_location(year = 2022, # country_asylum_iso3c = "CAN", # pop_type = c("ASY", "REF", "OIP")) # # plot_ctr_location(year = 2021, # country_asylum_iso3c = "MEX", # pop_type = c("ASY", "REF", "OIP"))
plot_ctr_recognition(year = 2022, country_asylum_iso3c = "USA", top_n_countries = 10, measure = "RefugeeRecognitionRate", order_by = "TotalDecided" )
plot_ctr_asylum(year = 2022, country_asylum_iso3c = "ECU", lag = 10)
plot_ctr_process(year = 2022, country_asylum_iso3c = "BOL") plot_ctr_process(year = 2022, country_asylum_iso3c = "CHL") plot_ctr_process(year = 2022, country_asylum_iso3c = "USA", otherprop = .02) plot_ctr_process(year = 2022, country_asylum_iso3c = "USA", otherprop = .04)
plot_ctr_processing_time(year = 2022, country_asylum_iso3c = "ARG") plot_ctr_processing_time(year = 2022, country_asylum_iso3c = "USA") ## Display a filtered version of the chart for a specific country and procedure plot_ctr_processing_time(year = 2022, country_asylum_iso3c = "EGY", country_origin_iso3c = "ERI", procedureType = "U")
plot_ctr_solution(year = 2021, country_asylum_iso3c= "UGA", lag = 10, sol_type = c("NAT", "RST", "RET", "RDP"))
plot_ctr_solution_recognition(year = 2022, country_asylum_iso3c= "UGA", lag = 10)
bar with share
dumbel
plot_ctr_disp_migrant(year = 2022, country_asylum_iso3c = "MEX" , top_n_countries = 10) # plot_ctr_disp_migrant(year = 2022, # country_asylum_iso3c = "FRA" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.