SpatialNetwork-methods: extract method for SpatialNetwork

Description Usage Arguments Examples

Description

extract method for SpatialNetwork

summary method for SpatialNetwork

spTransform method for SpatialNetwork

As("SpatialNetwork", "SpatialPointsDataFrame")

As("SpatialNetwork", "igraph")

plot method for SpatialNetwork

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature 'SpatialNetwork'
x[i, j, ..., drop = TRUE]

## S3 method for class 'SpatialNetwork'
points(x, ..., col = "red", cex = 2)

## S4 method for signature 'SpatialNetwork'
summary(object, ...)

## S3 method for class 'summary.SpatialNetwork'
print(x, ...)

## S4 method for signature 'SpatialNetwork,ANY'
spTransform(x, CRSobj, ...)

## S4 method for signature 'SpatialNetwork,missing'
plot(x, y, ..., arrow_size = 0)

Arguments

x

object of class SpatialNetwork

i

numeric; Lines to select (and any edges referring to them)

j

numeric; graph edges to select (and any Lines they refer to)

...

ignored

drop

logical; ignored

col

color

cex

symbol size

object

object of class SpatialNetwork

CRSobj

object of class CRS

y

ignored

arrow_size

numeric; scaling factor for the arrow head

Examples

1
2
3
4
5
data(torontocentre)
tc = SpatialNetwork(torontocentre, direction = torontocentre$DIRECTION_)
library(sp)
plot(tc, arrow_size = .5)
points(tc)

edzer/spnetwork documentation built on May 16, 2019, 12:10 a.m.