as.lpp: Convert Data to a Point Pattern on a Linear Network

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/lpp.R

Description

Convert various kinds of data to a point pattern on a linear network.

Usage

1
2
  as.lpp(x=NULL, y=NULL, seg=NULL, tp=NULL, ...,
         marks=NULL, L=NULL, check=FALSE, sparse)

Arguments

x,y

Vectors of cartesian coordinates, or any data acceptable to xy.coords. Alternatively x can be a point pattern on a linear network (object of class "lpp") or a planar point pattern (object of class "ppp").

seg,tp

Optional local coordinates. Vectors of the same length as x,y. See Details.

...

Ignored.

marks

Optional marks for the point pattern. A vector or factor with one entry for each point, or a data frame or hyperframe with one row for each point.

L

Linear network (object of class "linnet") on which the points lie.

check

Logical. Whether to check the validity of the spatial coordinates.

sparse

Optional logical value indicating whether to store the linear network data in a sparse matrix representation or not. See linnet.

Details

This function converts data in various formats into a point pattern on a linear network (object of class "lpp").

The possible formats are:

Value

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

Author(s)

\adrian

and \rolf

See Also

lpp.

Examples

1
2
3
4
   A <- as.psp(simplenet)
   X <- runifpointOnLines(10, A)
   is.ppp(X)
   Y <- as.lpp(X, L=simplenet)

spatstat.linnet documentation built on July 17, 2021, 9:07 a.m.