Compute a kernel smoothed intensity function for the line segments of a linear network.
## S3 method for class 'linnet' density(x, ...)
Linear network (object of class
Arguments passed to
This is the method for the generic function
for the class
"linnet" (linear networks).
x is first converted to a line segment pattern
(object of class
"psp"). Then the method
density.psp is applied to the
A kernel estimate of the intensity of the line segment pattern
is computed. The result is
the convolution of the isotropic Gaussian kernel, of
sigma, with the line segments.
The intensity of a line segment pattern
is the (spatially-varying) amount of segment length per unit area,
expressed in the same units as the coordinates of
If the units of
x are in metres, then an intensity value of 3
means that there are 3 metres of segment length per square metre of
for more details.
A pixel image in two dimensions (object of class
or a numeric vector.
D <- density(simplenet, 0.1) plot(D) plot(simplenet, add=TRUE, col="white") ## compare with average intensity volume(simplenet)/area(Window(simplenet))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.