Plots one indicator over the years, one line per country, for the Country Comparison tab. The hover text gives the country, indicator, year and value. 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).- countries
Character vector of country names to plot.
- indicator
Character. Indicator name to plot.
- font_style
A
plotlyfont list for the layout of the chart; the app passes font_style.
Examples
plot_country_comp(
mfi,
countries = c("Greece", "Bulgaria"),
indicator = "Population, total",
font_style = font_style
)