Skip to content

Andrei-WongE/shiny_geo

Repository files navigation

Objective


This project for the World Bank aims to construct a user-friendly Shiny app for visualising the economic structural characteristics of cities worldwide, based on varying urban definitions. Future versions will expand to include additional variables and datasets, as well as features such as graph downloads and interactive maps for comparing different definitions. Automatic report generation is also being considered as a potential enhancement.

🎬 Watch the demo

Shiny_image

How to use


Prerequisites

  • R (version 4.5 or higher)
  • RStudio
  • Git

Installation and Setup

  1. Clone the repository using Rstudio

    • Open RStudio and introduce in the termnial the following code:
    git clone https://github.com/Andrei-WongE/shiny_geo.git
  2. Open file with code in RStudio

    • Go to File → Open Project.
    • Navigate to the cloned shiny_geo folder.
    • Select shiny_geo.Rproj.
  3. Obtain the databases from app manager

    • Contact me via WB email.
    • I will email the required databases for the app.
    • Place the downloaded files in the Data folder within the cloned repository. If there is no Data folder, create one using the following code in the terminal:
    mkdir Data

Running the App

  1. Launch the application

    • Open the main app file (app.R).
    • Click the "Run App" button in RStudio (top right corner of the script editor).
    • Alternatively, run in R console:
    shiny::runApp()
  2. Using the interface

    • Choose urban definitions for analysis (tabbed interface).
    • Select countries from the dropdown menu.
    • Pick variables to visualize economic structural characteristics.
    • Explore the generated visualizations and data tables.

Features

  • Interactive visualization of city-level economic data
  • Multiple urban definition comparisons
  • Country selection and filtering
  • Data tables for detailed analysis

Nex steps

  • Include buttons to download graphs.
  • Add more variables and datasets.
  • Implement interactive maps for comparing different urban definitions.
  • Consider automatic report generation.
  • Optimize performance for larger datasets.
  • Enhance user interface for better usability.

About

Shiny app to visualise city level variables of diferent urban definitions

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages