Plots one indicator's value per country as a world choropleth, animated
over Year. Rows with missing values are dropped before plotting.
Usage
plot_map(mfi, indicator, font_style)
Arguments
- mfi
Data frame of World Bank indicator values (long format, with
Country Name, Country Code, Indicator Name, Year, value
columns).
- 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_map(mfi, indicator = "Population, total", font_style = font_style)