Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rjitterlpp

Random Perturbation of a Point Pattern on a Network


Description

Applies independent random displacements to each point in a point pattern on a network.

Usage

rjitterlpp(X, radius, ..., nsim = 1, drop = TRUE)

Arguments

X

A point pattern on a linear network (object of class "lpp").

radius

Scale of perturbations. A positive numerical value. Each point will be displaced by a random distance, with maximum displacement equal to this value.

...

Ignored.

nsim

Number of simulated realisations to be generated.

drop

Logical. If nsim=1 and drop=TRUE (the default), the result will be a point pattern, rather than a list containing a point pattern.

Details

Each of the points in X will be displaced along the network by a random amount, independently of other points. The maximum displacement distance is specified by radius. Each point remains on the same line segment of the network as it originally was.

Value

A point pattern on a linear network (object of class "lpp").

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.

See Also

rjitter for point patterns in two dimensions.

Examples

X <- runiflpp(3, simplenet)
   plot(X, pch=16)
   Y <- rjitterlpp(X, 0.1)
   plot(Y, add=TRUE, cols=3)

spatstat.linnet

Linear Networks Functionality of the 'spatstat' Family

v2.1-1
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Ottmar Cronie [ctb], Tilman Davies [ctb], Greg McSwiggan [ctb], Suman Rakshit [ctb]
Initial release
2021-03-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.