Skip to content

An interactive R Shiny dashboard for visualizing and analyzing urban transit data across multiple cities. Features temporal and spatial analysis, route performance metrics, and efficiency comparisons using synthetic GTFS data.

License

Notifications You must be signed in to change notification settings

malavikaswapna/urban-mobility-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš‡ Urban Mobility Analysis ๐ŸšŒ

Transit Dashboard

โœจ What is this magical app? โœจ

Urban Mobility Analysis is an interactive dashboard that visualizes transit data for different cities! It's like having the pulse of a city's transportation network at your fingertips. Watch as buses zoom, subway stations buzz with activity, and discover the secret rhythms of urban movement!

๐ŸŒŸ Features ๐ŸŒŸ

  • Multi-City Support: Explore transit patterns in New York, London, Tokyo, and more!
  • Beautiful Visualizations: Colorful charts and maps that make data come alive
  • Temporal Analysis: Discover when cities wake up, rush around, and wind down
  • Spatial Patterns: See where people go and how they move around the city
  • Route Analysis: Dive deep into specific transit routes
  • Efficiency Metrics: Find out which modes of transport are working hardest

๐Ÿ› ๏ธ Tech Stack ๐Ÿ› ๏ธ

This app is powered by the wonderful world of:

  • R - For all the data wrangling magic
  • Shiny - Making everything interactive and sparkly
  • Leaflet - Beautiful maps to explore
  • Plotly - Interactive charts that dance when you hover
  • dplyr - Transforming data like a wizard
  • ggplot2 - Creating visualizations that tell stories

๐Ÿš€ Getting Started ๐Ÿš€

Prerequisites

  • R (version 4.0.0 or higher)
  • RStudio (recommended for the best experience)

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/malavikaswapna/urban-mobility-analysis.git
  2. Open the project in RStudio

  3. Install the required packages:

    install.packages(c("shiny", "shinydashboard", "leaflet", "dplyr", 
                    "ggplot2", "lubridate", "DT", "plotly", "sf", 
                    "tidyr", "scales", "viridis", "RColorBrewer", 
                    "shinyWidgets", "shinycssloaders", "igraph", 
                    "tidygraph", "ggraph"))
  4. Run the application:

    shiny::runApp()
  5. Watch the transportation data dance before your eyes! ๐Ÿ’ƒ๐Ÿ•บ

๐ŸŽฎ How to Use ๐ŸŽฎ

  1. Select a City: Choose from the dropdown menu on the sidebar
  2. Choose a Date Range: Focus on specific time periods
  3. Pick a Transit Type: Filter by bus, subway, rail, or tram
  4. Explore the Tabs: Each tab reveals different insights about urban mobility

๐Ÿ“Š Dashboard Overview ๐Ÿ“Š

Overview Tab

Get a bird's-eye view of the city's transit system with key metrics and trends

Temporal Analysis Tab

Discover the rhythms of the city - when do people ride? When do they sleep?

Spatial Analysis Tab

See where the action happens on beautiful interactive maps

Route Analysis Tab

Dive deep into individual routes and their performance

Efficiency Comparison Tab

Compare different transit modes and find opportunities for improvement

Data Explorer Tab

For the data detectives who want to see the raw numbers

๐ŸŒˆ Sample Data ๐ŸŒˆ

Don't have real GTFS data? No problem! This app comes with adorable sample data that mimics real transit patterns. Perfect for playing around!

๐Ÿ“ธ Screenshots ๐Ÿ“ธ

Temporal Analysis

Temporal Analysis Discover ridership patterns throughout the day, week, and month

Spatial Analysis

Spatial Map See where transit activity concentrates across the city

Route Analysis

Route Performance Analyze individual route performance and passenger flows

Efficiency Comparison

Efficiency Metrics Compare the efficiency of different transit modes and stations

Data Explorer

Overview Dashboard Dive into the raw data tables to find hidden insights

๐Ÿ”ฎ Future Enhancements ๐Ÿ”ฎ

  • Real-time Data Integration: Watch the city move in real-time
  • Predictive Analytics: Forecast tomorrow's transit patterns
  • More Cities: Add your own hometown to the analysis
  • Weather Impact Analysis: See how rain and shine affect ridership
  • Event Detection: Automatically detect unusual transit patterns

๐Ÿšง Contributing ๐Ÿšง

Contributions welcome! If you have ideas for making this transit dashboard even more amazing, please:

  1. Fork the repository
  2. Create a feature branch
  3. Add your magical improvements
  4. Submit a pull request

๐Ÿ“ License ๐Ÿ“

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

๐Ÿ™ Acknowledgments ๐Ÿ™

  • Coffee โ˜• - For powering the late-night coding sessions
  • Public transit agencies worldwide ๐Ÿš - For making cities move
  • The R community ๐Ÿ“Š - For creating amazing data visualization tools
  • You ๐Ÿ‘‹ - For checking out this project!

Made with โค๏ธ for transit nerds everywhere

About

An interactive R Shiny dashboard for visualizing and analyzing urban transit data across multiple cities. Features temporal and spatial analysis, route performance metrics, and efficiency comparisons using synthetic GTFS data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published