shift.ppp

0th

Percentile

Apply Vector Translation To Point Pattern

Applies a vector shift to a point pattern.

Keywords
spatial
Usage
shift.ppp(X, vec=c(0,0))
Arguments
X
Point pattern (object of class "ppp").
vec
Vector of length 2 representing a translation.
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
library(spatstat)
  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.2-1, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.