lpp {spatstat}R Documentation

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").

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.

Value

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

Author(s)

Ang Qi Wei aqw07398@hotmail.com and Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/

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

  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)

[Package spatstat version 1.25-3 Index]