Learn R Programming

spatstat.linnet (version 3.2-2)

crossing.linnet: Crossing Points between Linear Network and Other Lines

Description

Find all the crossing-points between a linear network and another pattern of lines or line segments.

Usage

crossing.linnet(X, Y)

Value

Point pattern on a linear network (object of class "lpp").

Arguments

X

Linear network (object of class "linnet").

Y

A linear network, or a spatial pattern of line segments (class "psp") or infinite lines (class "infline").

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au.

Details

All crossing-points between X and Y are determined. The result is a point pattern on the network X.

See Also

crossing.psp

Examples

Run this code
   plot(simplenet, main="")
   L <- infline(p=runif(3), theta=runif(3, max=pi/2))
   plot(L, col="red")
   Y <- crossing.linnet(simplenet, L)
   plot(Y, add=TRUE, cols="blue")

Run the code above in your browser using DataLab