Learn R Programming

spatstat (version 1.64-1)

chop.linnet: Divide a Linear Network into Tiles Using Infinite Lines

Description

Given a linear network and a set of infinite lines, divide the network into tiles demarcated by the lines. The result is a tessellation of the network.

Usage

chop.linnet(X, L)

Arguments

X

Linear network (object of class "linnet") or data acceptable to as.linnet.

L

Infinite line or lines (object of class "infline").

Value

Tessellation on a linear network (object of class "lintess").

Details

The first line of L divides X into two tiles. Subsequent lines divide each of these tiles. The result is a tessellation of X. Tiles are not necessarily connected sets.

See Also

crossing.linnet

Examples

Run this code
# NOT RUN {
   L <- infline(p=runif(3), theta=runif(3, max=pi/2))
   Y <- chop.linnet(simplenet, L)
   plot(Y, main="")
   plot(L, col="red")
# }

Run the code above in your browser using DataLab