Learn R Programming

stplanr (version 0.1.4)

points2flow: Convert a series of points into geographical flows

Description

Takes a series of geographical points and converts them into a SpatialLinesDataFrame representing the potential flows, or 'spatial interaction', between every combination of points.

Usage

points2flow(p)

Arguments

p
SpatialPointsDataFrame

Examples

Run this code
plot(cents)
flow <-points2flow(cents)
plot(flow, add = TRUE)

Run the code above in your browser using DataLab