move_stats: move_stats

Description Usage Arguments Value Examples

Description

Calculate vector of moveability statistics for a given input street network.

Usage

1
2
move_stats(graph, from, green_polys, activity_points, d_threshold = 1,
  quiet = FALSE)

Arguments

graph

Street network in dodgr format obtained through applying dodgr::weight_streetnet to an osmdata_sc object.

from

Vector of points from which moveability statistics are to be be calculated.

green_polys

Polygons of green space obtained from get_green_space

activity_points

Points of activity obtained from get_attractors.

d_threshold

Distance threshold below which distances are to be aggreagted (in kilometres).

quiet

If TRUE, dump progress information to screen.

Value

Vector of moveability values for each point in from, with moveability quantified as $m.

Examples

1
2
3
4
5
6
7
8
graph <- dodgr::weight_streetnet (castlemaine)
green_polys <- castlemaine_green # green polygon data included with package
activity_points <- castlemaine_attr # activity attractors included with package
from <- sample (graph$.vx0, size = 100)
d <- move_stats (graph, green_polys = green_polys,
                 activity_points = activity_points, from = from)
# d is a `data.frame` of the coordinates of all `from` points and
# correponding moveability statisics 

ATFutures/moveability documentation built on Feb. 20, 2022, 1:06 p.m.