# shift.ppp

From spatstat v1.11-5
by Adrian Baddeley

##### Apply Vector Translation To Point Pattern

Applies a vector shift to a point pattern.

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

##### Examples

```
data(cells)
X <- shift(cells, c(2,3))
plot(X)
# no discernible difference except coordinates are different
plot(cells, pch=16)
plot(shift(cells, c(0.03,0.03)), add=TRUE)
```

*Documentation reproduced from package spatstat, version 1.11-5, License: GPL version 2 or newer*

### Community examples

Looks like there are no examples yet.