"linim"
that represents
a pixel image on a linear network.
linim(L, Z, ..., df=NULL)
"linnet"
).
"im"
).
Z
and the lines of L
.
See Details.
"linim"
that also inherits the class
"im"
.
There is a special method for plotting this class.
"linim"
that represents
a pixel image defined on a linear network.
Typically such objects are
used to represent the result of smoothing or model-fitting on the
network. Most users will not need to call linim
directly. The argument L
is a linear network (object of class "linnet"
).
It gives the exact spatial locations
of the line segments of the network, and their connectivity.
The argument Z
is a pixel image object of class "im"
that gives a pixellated approximation of the function values.
For increased efficiency, advanced users may specify the
optional argument df
. This is a data frame giving the
precomputed mapping between the pixels of Z
and the line segments of L
.
It should have columns named xc, yc
containing the coordinates of
the pixel centres, x,y
containing the projections of these
pixel centres onto the linear network, mapXY
identifying the
line segment on which each projected point lies, and tp
giving
the parametric position of (x,y)
along the segment.
McSwiggan, G., Nair, M.G. and Baddeley, A. (2012) Fitting Poisson point process models to events on a linear network. Manuscript in preparation.
plot.linim
,
linnet
,
eval.linim
,
Math.linim
,
im
.
M <- as.mask.psp(as.psp(simplenet))
Z <- as.im(function(x,y) {x-y}, W=M)
X <- linim(simplenet, Z)
X
Run the code above in your browser using DataLab