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.
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 (e.g.list(size = 20, color = "gray25")) applied to the chart's layout.
Examples
plot_country_comp(
mfi,
countries = c("Greece", "Bulgaria"),
indicator = "Population, total",
font_style = font_style
)