https://github.com/ropensci-archive/rwalkable
:no_entry: ARCHIVED :no_entry: Walkability Scores
https://github.com/ropensci-archive/rwalkable
ozunconf18 r r-package ropensci rozunconf rstats unconf
Last synced: 6 months ago
JSON representation
:no_entry: ARCHIVED :no_entry: Walkability Scores
- Host: GitHub
- URL: https://github.com/ropensci-archive/rwalkable
- Owner: ropensci-archive
- License: other
- Archived: true
- Created: 2018-11-21T23:52:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T14:12:14.000Z (about 3 years ago)
- Last Synced: 2024-08-06T03:04:30.633Z (10 months ago)
- Topics: ozunconf18, r, r-package, ropensci, rozunconf, rstats, unconf
- Language: R
- Homepage: https://docs.ropensci.org/rwalkable
- Size: 431 KB
- Stars: 13
- Watchers: 5
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README-NOT.md
- License: LICENSE
Awesome Lists containing this project
README
rwalkable
=========The goal of rwalkable is to look up and summarise some information about the walkability of a neighbourhood. We look at two components of walkability:
- how many places are there within walking distance that you might want to go to (per hectare)?
- is there a reasonably dense network of roads or paths to walk on (number of road segments connections minus number of intersections, per hectare)We use data from [OpenStreetMap](https://www.openstreetmap.org/copyright) for both components, via the `osmdata` package: it provides both a road network and a list of locations ('amenities') that someone has thought worth adding to the map. Most of the heavy lifting is done by the `dodgr` package.
Installation
------------``` r
#install.packages("devtools")
devtools::install_github("ropenscilabs/rwalkable")
```Example
-------The location can be specified as (the centre of) a geographic area that OpenStreetMap knows about, or as a two-element vector of latitude and longitude
``` r
library(rwalkable)
nearby("Paris, France")
#> Within 800 m of Paris, France
#> 7.6 points of interest per hectare
#> 2.2 road branches per hectare
nearby("Paris, Texas")
#> Within 800 m of Paris, Texas
#> 0 points of interest per hectare
#> 0.4 road branches per hectare
```More detail is better:
``` r
nearby("3rd Arrondissement, Paris, France")
#> Within 800 m of 3rd Arrondissement, Paris, France
#> 7.1 points of interest per hectare
#> 2.2 road branches per hectare
```Check out the vignette for examples with interactive plots in `leaflet`!