Skip to contents

Colors every country of a world map by the value of one indicator, from white (lowest) to dark blue (highest), animated over Year, for the Map tab. Countries are placed by their Country Code. Rows with a missing value are left out.

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 for the layout of the chart; the app passes font_style.

Value

A plotly htmlwidget.

Examples

plot_map(mfi, indicator = "Population, total", font_style = font_style)