Git Product home page Git Product logo

gcvt's Introduction

gcvt

Work in progress (imagine a web1.0 yellow roadwork sign here).

The goal of gcvt is to provide data and functions for visualising road networks. Specifically it is focussed on the TEN-T European road network.

Installation

You can install gcvt from github with:

# install.packages("devtools")
devtools::install_github("IntegratedTransportPlanning/gcvt")

Apps

This repo contains a number of shiny apps that view our data in different ways. The two most developed are combined_viewer_mapbox and combined_viewer_leaflet.

The leaflet version is currently less buggy. The mapbox version has link offsetting (so you can see the direction of links).

To run the apps locally use:

shiny::runApp("R/combined_viewer_leaflet/")

Mapbox app

The mapbox app requires some additional setup:

cd R/combined_viewer_mapbox
npm install
npm run build
#> npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
#> npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
#> 
#> removed 38 packages and audited 10111 packages in 8.812s
#> found 0 vulnerabilities
#> 
#> 
#> > [email protected] build /home/colin/projects/gcvt/R/combined_viewer_mapbox
#> > parcel build app.js style.css --out-dir www --no-minify
#> 
#> ✨  Built in 6.13s.
#> 
#> www/cropped_links.2ea4e8ce.geojson    ⚠️  45.05 MB    3.93s
#> www/zones.3d7caecc.geojson             ⚠️  9.75 MB    1.31s
#> www/app.map                            1023.22 KB     85ms
#> www/app.js                              835.79 KB    5.44s
#> www/blankstyle.71754c95.js                3.85 KB    347ms
#> www/blankstyle.71754c95.map               1.42 KB      8ms
#> www/style.css                             1.08 KB    411ms
#> www/dummyline.263aaf2c.geojson              239 B    190ms

I run the app like so, you can run it from rstudio if you prefer:

R -e 'shiny::runApp(".", port=6619)'

gcvt's People

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.