Kernel smoothing is applied to the points of x
using a two-dimensional Gaussian kernel, as described in Rakshit et al (2019).
The result is a pixel image on the linear network (class
"linim") which can be plotted.
Other techniques for kernel smoothing on a network are implemented in
density.lpp. The main advantages of using a
two-dimensional kernel are very fast computation and
insensitivity to changes in the network geometry. The main
disadvantage is that it ignores the connectivity of the network.
See Rakshit et al (2019) for further explanation.
The argument sigma specifies the smoothing bandwidth.
If sigma is missing or NULL,
the default is one-eighth of the length of the shortest side
of the bounding box of x.
If sigma is a function in the R language, it is assumed
to be a bandwidth selection rule, and it will be applied to x
to compute the bandwidth value.