Learn R Programming

stlnpp (version 0.4.0)

stlpp: Create spatio-temporal point pattern on linear network

Description

Create an object of class stlpp representing a spatio-temporal point pattern on a linear network.

Usage

stlpp(X, L, T, ...)

Value

An object of class stlpp.

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 or lpp

L

linear network (object of class linnet) on which the points lie

T

time occurrence of the points

...

ignored

Author

Mehdi Moradi <m2.moradi@yahoo.com>

Details

This function creates an object of class stlpp. For details about X see lpp. T represents the time occurrences of data points.

See Also

as.stlpp, lpp

Examples

Run this code
 
data(easynet)
X <- rpoislpp(1,easynet)
t <- runif(npoints(X))
stlpp(X,T=t,L=easynet)

Run the code above in your browser using DataLab