# shift.im

From spatstat v1.9-1
by Adrian Baddeley

##### Apply Vector Translation To Pixel Image

Applies a vector shift to a pixel image

##### Usage

```
## S3 method for class 'im':
shift(X, vec=c(0,0), ...)
```

##### Arguments

- X
- Pixel image (object of class
`"im"`

). - vec
- Vector of length 2 representing a translation.
- ...
- Ignored

##### Details

The spatial location of each pixel in the image
is translated by the vector `vec`

.
This is a method for the generic function `shift`

.

##### Value

- Another pixel image (of class
`"im"`

) representing the result of applying the vector shift.

##### See Also

##### Examples

```
# make up an image
X <- setcov(unit.square())
plot(X)
Y <- shift(X, c(10,10))
plot(Y)
# no discernible difference except coordinates are different
```

*Documentation reproduced from package spatstat, version 1.9-1, License: GPL version 2 or newer*

### Community examples

Looks like there are no examples yet.