Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

based on this code and dataset: # Load required packages library ( dplyr ) library ( countrycode ) library ( lubridate ) library ( tidyr

based on this code and dataset: # Load required packages
library(dplyr)
library(countrycode)
library(lubridate)
library(tidyr)
library(tidyverse)
# Load the data
df - read.csv("~/Documents/R and Rstudio/A2.1: Refugees/data/A2_refugee_status.csv")
refugees_raw - read_csv("~/Documents/R and Rstudio/A2.1: Refugees/data/A2_refugee_status.csv", na = c("-","X","D"))
non_countries - c("Africa", "Asia", "Europe", "North America", "Oceania",
"South America", "Unknown", "Other", "Total")
refugees_clean - refugees_raw %>%
# Make this column name easier to work with
rename(origin_country =`Continent/Country of Nationality`)%>%
# Get rid of non-countries
filter(!(origin_country %in% non_countries))%>%
# Convert country names to ISO3 codes
mutate(iso3= countrycode(origin_country, "country.name", "iso3c",
custom_match = c("Korea, North" ="PRK")))%>%
# Convert ISO3 codes to country names, regions, and continents
mutate(origin_country = countrycode(iso3, "iso3c", "country.name"),
origin_region = countrycode(iso3, "iso3c", "region"),
origin_continent = countrycode(iso3, "iso3c", "continent"))%>%
# Make this data tidy
gather(year, number, -origin_country, -iso3,-origin_region, -origin_continent)%>%
# Make sure the year column is numeric + make an actual date column for years
mutate(year = as.numeric(year),
year_date = ymd(paste0(year,"-01-01")))
refugees_clean
refugees_countries_cumulative - refugees_clean %>%
arrange(year_date)%>%
group_by(origin_country)%>%
mutate(cumulative_total = cumsum(number))
refugees_countries_cumulative
refugees_continents - refugees_clean %>%
group_by(origin_continent, year_date)%>%
summarize(total = sum(number, na.rm = TRUE))
refugees_continents_cumulative - refugees_clean %>%
group_by(origin_continent, year_date)%>%
summarize(total = sum(number, na.rm = TRUE))%>%
arrange(year_date)%>%
group_by(origin_continent)%>%
mutate(cumulative_total = cumsum(total))
create graphs to support this story:
From 2006 to 2015, the United States opened its arms to over 600,000 refugees, showcasing its longstanding dedication to offering refuge to those escaping peril. This intricate mosaic of fluctuating trends, reflecting the geopolitical upheavals and humanitarian crises shaping our world during this period, extends far beyond a mere collection of numbers.
Myanmar's Surge and Retreat (MMR)
In Myanmar, the sharp increase in refugees circa 2008 aligns with Cyclone Nargis's devastating impact. The tragedy spurred a significant humanitarian crisis, propelling a wave of displacement. Fast forward to 2014, and we witness another peak. Here, the ongoing ethnic conflicts, a longstanding source of distress, likely drove another exodus, reflecting the nation's turbulent journey.
Iraq's Escalating Exodus (IRQ)
Turning to Iraq, a gradual yet steady rise in refugees culminates in a spike around 2012. This pattern echoes the enduring instability and conflict following the 2003 Iraq War, with the emergence of ISIS around 2012 exacerbating the situation, compelling many to flee their homeland in search of safety.
Bhutan's Peaks of Departure (BTN)
The story of Bhutanese refugees, marked by peaks in 2007 and 2010, harks back to the ethnic Nepalis' displacement in the early 1990s. The persistence of this refugee wave underscores the protracted nature of their plight, with many spending years in Nepalese camps before finding resettlement.
Interpreting the Ebb and Flow
These graphical trends mirror pivotal historical events, offering insights into the causes behind the refugee movements. While spikes in the graph suggest periods of intensified crisis, the subsequent declines often coincide with stabilization efforts or successful asylum in host nations.
Policy Reflections and Humanizing Data
The fluctuations also mirror policy changes and international diplomacy's ebb and flow, affecting refugees' journeys to safety. However, beyond the graph lines and data points lies the core human narrativethe uprooted families, the resilience amid tribulations, and the ongoing search for a home.
The Chronicles of Refuge and Resilience
Our exploration of the leading refugee-origin countries over a decade paints a vivid picture of global unrest and the unyielding spirit of humanity. More than a statistical chart, this visual narrative stands as a testament to our era, emphasizing the ongoing need for empathy and support for those who continue to seek a new life in the United States.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

General Purpose of Your Speech Analyzing Your Audience

Answered: 1 week ago

Question

Ethical Speaking: Taking Responsibility for Your Speech?

Answered: 1 week ago