"lpp"
that represents
a point pattern on a linear network.lpp(X, L, ...)
"ppp"
) or other data acceptable to as.ppp
."linnet"
)."lpp"
.
Also inherits the class "ppx"
."lpp"
objects was changed in
1.28-0
.
Objects in the old format are still handled correctly,
but computations are faster in the new format.
To convert an object X
from the old format to the new format,
use X <- lpp(as.ppp(X), as.linnet(X))
."lpp"
that represents
a point pattern on a linear network. Normally X
is a point pattern. The points of X
should lie
on the lines of L
.
Alternatively X
may be a matrix or data frame containing at
least two columns.
X
will be interpreted
as spatial coordinates, and any remaining columns as marks.X
is a data frame with columns namedx
,y
,seg
andtp
. Thenx
andy
will be interpreted as spatial
coordinates, andseg
andtp
as local
coordinates, withseg
indicating which line segment ofL
the point lies on, andtp
indicating how far along
the segment the point lies (normalised to 1). Any remaining columns
will be interpreted as marks."lpp"
objects:
chicago
, dendrite
, spiders
.
See as.lpp
for converting data to an lpp
object. See methods.lpp
and
methods.ppx
for other methods applicable
to lpp
objects.
Calculations on an lpp
object:
intensity.lpp
,
distfun.lpp
,
nndist.lpp
,
nnwhich.lpp
,
nncross.lpp
,
nnfun.lpp
.
Summary functions:
linearK
,
linearKinhom
,
linearpcf
,
linearKdot
,
linearKcross
,
linearmarkconnect
, etc.
Random point patterns on a linear network can be generated by
rpoislpp
or runiflpp
.
See linnet
for linear networks.
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