Initializes and launches a Shiny application for visualizing World Bank data. The app includes dynamic Plotly charts for comparing countries, indicators, and demographic statistics across time.
Details
This function:
Loads required datasets:
mfi,country_code, andmfi_population.Builds
mfi_coron the fly from selected indicators inmfi.Sets formatting options for numbers and fonts.
Defines a helper function
format_bignumfor human-readable large numbers (e.g., K, M, Bn, Tn).Launches the Shiny app using
shinyApp(ui = ui, server = server).
The Shiny app interface includes:
- Country Comparison
Compare a selected indicator across countries.
- Indicator Comparison
Compare multiple indicators for one country.
- Population Pyramid
Visualize male/female population distribution.
- Barplot
Rank countries by a selected indicator.
- Scatterplot
Show relationship between two indicators.
- Map
Animated choropleth map by year.
- Index
Tabular view of the dataset.