Skip to contents

Plots one indicator's value over time as one line per selected country. Rows with missing values for the given filters are dropped before plotting.

Usage

plot_country_comp(mfi, countries, indicator, font_style)

Arguments

mfi

Data frame of World Bank indicator values (long format, with Country Name, Indicator Name, Year, value columns).

countries

Character vector of country names to plot.

indicator

Character. Indicator name to plot.

font_style

A plotly font list (e.g. list(size = 20, color = "gray25")) applied to the chart's layout.

Value

A plotly htmlwidget.

Examples

plot_country_comp(
  mfi,
  countries = c("Greece", "Bulgaria"),
  indicator = "Population, total",
  font_style = font_style
)