Learn R Programming

spatstat (version 1.23-1)

lpp: Create Point Pattern on Linear Network

Description

Creates an object of class "lpp" that represents a point pattern on a linear network.

Usage

lpp(X, L)

Arguments

X
Locations of the points. A matrix or data frame of coordinates, or a point pattern object (of class "ppp") or other data acceptable to as.ppp.
L
Linear network (object of class "linnet").

Value

  • An object of class "lpp". Also inherits the class "ppx".

Details

This command creates an object of class "lpp" that represents a point pattern on a linear network. The points of X should lie on the lines of L.

See Also

methods.lpp and methods.ppx for methods applicable to lpp objects. linnet for linear networks.

Random point patterns on a linear network can be generated by rpoislpp or runiflpp.

Examples

Run this code
example(linnet)
  xx <- list(x=c(-1.5,0,0.5,1.5), y=c(1.5,3,4.5,1.5))
  X <- lpp(xx, letterA)
  plot(X)
  X
  summary(X)

Run the code above in your browser using DataLab