Git Product home page Git Product logo

diplomacy-lab-dashboard's Introduction

Diplomacy Lab Dashboard โ€” G7

Description

This project is part of the US State Department's initiative to develop a Data Dashboard for foreign service officers at Embassies around the world. This repository includes the code for the refugee tab, which uses various UNHCR refugee datasets to provide insights into global displacement trends, demographic details, and solutions for refugees. The complete dashboard can be accessed here.

Table of Contents

Installation and Setup

To get started with this project, follow these steps:

  1. Clone the repository:

    git clone [email protected]:Fazazhar/Diplomacy-Lab-Dashboard.git
  2. Change into the project directory:

    cd Diplomacy-Lab-Dashboard
  3. Install the necessary packages:

    install.packages(c("shiny", "shinyjs", "refugees", "ggplot2", "dplyr", "shinydashboard", "plotly", "tidyr", "scales"))
  4. Run the Shiny app:

    shiny::runApp()

Usage

The dashboard provides an interactive interface to explore various datasets related to refugees, asylum seekers, and internally displaced persons. Navigate through the different tabs to visualize data trends and demographic information.

Data Sources

The data utilized in this dashboard comes from multiple sources, including:

For detailed information about the data, refer to the project memo:

Memo Excerpt

The Refugee Tab utilizes the Refugee Population Statistics Database published by the Office of The United Nations High Commissioner for Refugees (UNHCR). The data is maintained and updated annually and semi-annually by the Expert Group on Refugee and IDP Statistics (EGRIS) and the Inter-agency Group on Statelessness Estimation, both commissioned by the UN Statistical Commission (UNSC).

Features and Code Snippets

Population Data Visualization

The Population Data tab displays the number of forcibly displaced and stateless people by year, including refugees and asylum seekers. Here is a code snippet used to generate the population data plot:

output$plot_population <- renderPlotly({
  data <- filter_data()$population
  plot_graph(data, "year", input$population_vars, "Population Data", "Year", "Number of People", input$population_vars)
})

Asylum Applications Data

The Asylum Applications tab shows the number of applications from those seeking asylum. Below is a snippet to generate the asylum applications plot:

output$plot_asylum_applications <- renderPlotly({
  data <- filter_data()$asylum_applications
  plot_graph(data, "year", input$asylum_applications_vars, "Asylum Applications Data", "Year", "Number of Applications", input$asylum_applications_vars)
})

Final Code

The final code for this project can be found here.

Contributors

License

This project is licensed under the MIT License - see the LICENSE file for details.

diplomacy-lab-dashboard's People

Contributors

fazazhar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.