Skip to contents

Plots several indicators' values over time, for a single country, as one line per indicator. Rows with missing values for the given filters are dropped before plotting.

Usage

plot_indicator_comp(mfi, country, indicators, font_style)

Arguments

mfi

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

country

Character. Country name to plot.

indicators

Character vector of indicator names 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_indicator_comp(
  mfi,
  country = "Greece",
  indicators = c("Population, female", "Population, male"),
  font_style = font_style
)