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.
You can install gcvt from github with:
# install.packages("devtools")
devtools::install_github("IntegratedTransportPlanning/gcvt")
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/")
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)'