Plot United Nations Refugee and Asylum Flow Time Series

# S3 method for refts
plot(x, ...)

Arguments

x

A prepared data frame or data table with annual dyadic flows of affected populations. Most likely produced from prepUNref using sum_groups = TRUE, but may be generated from other means with the proper column headings and structure; see details for additional information.

...

List of arguments passed to default plotting device:

country

Character string of length one indicating ISO3 character code for country of interest. Defaults to "USA".

yr

Numeric vector of length two indicating the range of years to subset the dataset. Defaults to min and max of the input data frame.

mode

A character string indicating plot mode. May be either 'out' (migration out-flows from specified country) or 'in' (migration in-flows to specified country). Default mode is 'in'.

poplabel

A character string for plot labeling describing the populations summarized using prepUNref(groups=c('asylum_seekers', 'refugees')). Defaults to 'Migrant'.

Value

Returns a plotting device of class ggplot.