Each line segment of a linear network will be divided into several shorter segments (line elements or lixels).
lixellate(X, ..., nsplit, eps, sparse = TRUE)
A linear network (object of class
Number of pieces into which each line segment of
Maximum length of the resulting pieces of line segment.
A single numeric value.
Optional. Logical value specifying whether the resulting
linear network should be represented using a sparse matrix.
Each line segment in
X will be subdivided into equal pieces.
The result is an object of the same kind as
X, representing the
same data as
X except that the segments have been subdivided.
Splitting is controlled by the arguments
exactly one of which should be given.
nsplit is given, it specifies the
number of pieces into which each line segment of
should be divided. It should be either a single integer, or an integer vector
of length equal to the number of line segments in
eps is given, it specifies the maximum length of
any resulting piece of line segment.
It is strongly advisable to use
sparse=TRUE (the default)
to limit the computation time.
X is a point pattern (class
"lpp") then the
spatial coordinates and marks of each data point are unchanged, but the
local coordinates will change, because they are
adjusted to map them to the new subdivided network.
Object of the same kind as
Greg McSwiggan, \spatstatAuthors.
A <- lixellate(simplenet, nsplit=4) plot(A, main="lixellate(simplenet, nsplit=4)") points(vertices(A), pch=16) spiders lixellate(spiders, nsplit=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.