`shift(X, vec=c(0,0))`

X

Any suitable dataset representing a two-dimensional
object, such as a point pattern (object of class

`"ppp"`

),
or a window (object of class `"owin"`

).vec

Vector of length 2 representing a translation.

- Another object of the same type, representing the result of applying the shift.

`shift.ppp`

)
and windows (`shift.owin`

). The object is translated by the vector `vec`

.

`shift.ppp`

,
`shift.owin`

,
`rotate`

,
`affine`

library(spatstat) data(cells) X <- shift(cells, c(2,3)) plot(X) # no discernible difference except coordinates are different