Learn R Programming

stplanr (version 0.2.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
# NOT RUN {
data(cents)
plot(cents)
flow <-points2flow(cents)
plot(flow, add = TRUE)
flow_sf <- points2flow(cents_sf)
plot(flow_sf)
# }

Run the code above in your browser using DataLab