stplanr | Sustainable transport planning with R | Development Tools library
kandi X-RAY | stplanr Summary
kandi X-RAY | stplanr Summary
stplanr is a package for sustainable transport planning with R. It provides functions for solving common problems in transport planning and modelling, such as how to best get from point A to point B. The overall aim is to provide a reproducible, transparent and accessible toolkit to help people better understand transport systems and inform policy, as outlined in a paper about the package, and the potential for open source software in transport planning in general, published in the R Journal. The initial work on the project was funded by the Department of Transport (DfT) as part of the development of the Propensity to Cycle Tool (PCT), a web application to explore current travel patterns and cycling potential at zone, desire line, route and route network levels (see www.pct.bike and click on a region to try it out). The basis of the methods underlying the PCT is origin-destination data, which are used to highlight where many short distance trips are being made, and estimate how many could switch to cycling. The results help identify where cycleways are most needed, an important component of sustainable transport planning infrastructure engineering and policy design. See the package vignette (e.g. via vignette("introducing-stplanr")) or an academic paper on the Propensity to Cycle Tool (PCT) for more information on how it can be used. This README provides some basics.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stplanr
stplanr Key Features
stplanr Examples and Code Snippets
Community Discussions
Trending Discussions on stplanr
QUESTION
I would like to generate the map in shiny (attached), however I am having trouble plotting the map from the code below. Could you take a look and help me solve it ??. The shapefile files can be downloaded from the following website: https://github.com/ropensci/stplanr/releases/download/0.6.1/Example.zip
If you do not have the sfnetworks package installed, please check this website: https://github.com/luukvdmeer/sfnetworks
Thank you very much!
...ANSWER
Answered 2020-Jul-15 at 22:12 output$Map <- renderPlot({
plot(net)
plot(r, col = "blue", lwd = 5, add = TRUE)
})
QUESTION
I would like your help with the route_local function of the stplanr package (https://cran.r-project.org/web/packages/stplanr/stplanr.pdf), which is on page 89.
You may realize that a map is generated from the example function, showing the path between two points (I left the code and the image generated below). I would like to do the same thing. In my case it is show the path between two points considering my roads. Both are the shapefile file. I managed to generate the roads to show (code below), but I would like to show the route between any two points from these roads. Can someone help me?? I left it at the following site https://github.com/JovaniSouza/JovaniSouza5/blob/master/Example.zip to download the shapefiles.
...ANSWER
Answered 2020-Jul-06 at 22:38Try this. To adapt the example to your case you have to convert the coordinate system of the roads
to the points
shapefile (or the other way around):
QUESTION
i play around with https://rdrr.io/rforge/osmar/src/demo/navigator.R (Navigator Demo). I would like to find several paths insted of just one.
It seems i can not use the function all_simple_paths
since it will never terminate.
Would it be possible after i find a shortest path with
ANSWER
Answered 2020-Jun-13 at 22:22Increasing the weight of the path works exactly as expected :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stplanr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page