shift.ppp

0th

Percentile

Apply Vector Translation To Point Pattern

Applies a vector shift to a point pattern.

Keywords
manip, spatial
Usage
## S3 method for class 'ppp':
shift(X, vec=c(0,0), ...)
Arguments
X
Point pattern (object of class "ppp").
vec
Vector of length 2 representing a translation.
...
Ignored
Details

The point pattern, and its window, are translated by the vector vec. This is a method for the generic function shift.

Value

  • Another point pattern (of class "ppp") representing the result of applying the vector shift.

See Also

shift, shift.owin, rotate, affine

Aliases
  • shift.ppp
Examples
data(cells)
  X <- shift(cells, c(2,3))
  plot(X)
  # no discernible difference except coordinates are different
  Y <- superimpose(cells, shift(cells, c(0.1,0.1)))
  plot(Y)
Documentation reproduced from package spatstat, version 1.10-2, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.