# shift.ppp

From spatstat v1.5-5
by Adrian Baddeley

##### 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.
- ...
- 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

##### 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.5-5, License: GPL version 2 or newer*

### Community examples

Looks like there are no examples yet.