Learn R Programming

popgraph (version 1.4)

to_SpatialLines: Converts edge set to SpatialLines object

Description

This is a convienence function that takes the edge set and returns a SpatialLines object.

Usage

to_SpatialLines(graph, latitude = "Latitude", longitude = "Longitude", ...)

Arguments

graph
An object of type popgraph. This graph must already be decroated with latitude and longitude attributes.
latitude
The name of the Latitude attribute (default="Latitude")
longitude
The name of the Longitude attribute (default="Longitude")
...
Ignored

Value

A SpatialLines object