Plots several indicators over the years for one country, one line per indicator, for the Indicator Comparison tab. The indicators share one y axis, so they compare well only when they have the same unit and a similar scale (e.g. the female and the male population). Rows with a missing value are left out.
Arguments
- mfi
Data frame of World Bank indicator values (long format, with
Country Name,Indicator Name,Year,valuecolumns).- country
Character. Country name to plot.
- indicators
Character vector of indicator names to plot.
- font_style
A
plotlyfont list for the layout of the chart; the app passes font_style.
Examples
plot_indicator_comp(
mfi,
country = "Greece",
indicators = c("Population, female", "Population, male"),
font_style = font_style
)