Giter Site home page Giter Site logo

lenamax2355 / commute-explorer-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nz-stefan/commute-explorer-2

0.0 0.0 0.0 23.73 MB

R Shiny Contest 2021 submission

R 6.99% CSS 12.84% JavaScript 35.51% HTML 27.88% SCSS 10.51% Handlebars 6.22% Shell 0.06%

commute-explorer-2's Introduction

Commute Explorer

This R Shiny application was submitted to the RStudio Shiny Contest 2021. Check out the running app online: https://nz-stefan.shinyapps.io/commute-explorer-2/.

recording.gif

Data

The data behind this application is available in the Datafinder hosted by Stats NZ. Additionally, I used the Statistal Area 2 2018 data set which contains shape files of the statistical areas referenced in the commuter data set. I simplified the polygons in those shape files to reduce the amount of data to display in the browser for this application. I also processed the Geographic Areas File 2020 to group statistical areas into the main NZ regions.

Deployment

The app is deployed through RStudio's webservice shinyapps.io.

Setup development environment

The development environment of this project is encapsulated in a Docker container.

  1. Install Docker. Follow the instructions on https://docs.docker.com/install/
  2. Make docker run without sudo
    sudo groupadd docker
    sudo usermod -aG docker $USER
    
    Log out and log back in so that your group membership is re-evaluated
  3. Clone the GIT repository
    git clone https://github.com/nz-stefan/commute-explorer-2.git
    
  4. Setup development Docker container
    cd commute-explorer-2
    bin/setup-environment.sh
    
    You should see lots of container build messages
  5. Spin up the container
    bin/start_rstudio.sh
    
  6. Open http://localhost:8791 in your browser to start a new RStudio session
  7. Install R packages required for this app. Type the following instructions into the R session window of RStudio
    renv::restore()
    
    The installation will take a few minutes. The package library will be installed into the renv/library directory of the project path.
  8. Open the file app/global.R and hit the "Run app" button in the toolbar of the script editor (or type shiny::runApp("app") in the R session window). The Shiny app should open in a new window. You may need to instruct your browser to not block popup windows for this URL.

commute-explorer-2's People

Contributors

nz-stefan 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.