plot_time_wdi: Line plot (plotly-powered) the indicator over time (year) for...

Description Usage Arguments Value Examples

View source: R/quickplots.R

Description

Line plot (plotly-powered) the indicator over time (year) for the highlight_countries only

Usage

1
2
3
4
5
6
7
8
9
plot_time_wdi(
  indicator = "SI.POV.GINI",
  highlight_countries = c("Colombia", "Germany"),
  start = lubridate::year(Sys.Date()) - 10,
  end = lubridate::year(Sys.Date() - months(18)),
  country = "all",
  regions = default_regions(),
  income_groups = default_income_groups()
)

Arguments

indicator

character of length 1 with the indicator code

highlight_countries

character vector with country names to highlight

start

first year to download data

end

last year to download data

country

subset of countries to download data from. Default to "all". This argument is passed as is to WDI::WDI and hence, requires 'ISO-2 character codes, e.g. "BR", "US", "CA"'.

regions

character vector to filter the data only to specific regions

income_groups

character vector to filter the data only to specific income groups

Value

plotly object

Examples

1
2
3
4
## Not run: 
plot_time_wdi()

## End(Not run)

edalfon/wdiquickplots documentation built on Dec. 24, 2021, 3 p.m.