shift.owin {spatstat} | R Documentation |
Applies a vector shift to a window
## S3 method for class 'owin': shift(X, vec=c(0,0), ...)
X |
Window (object of class "owin" ). |
vec |
Vector of length 2 representing a translation. |
... |
Ignored |
The window is translated by the vector vec
.
This is a method for the generic function shift
.
Another window (of class "owin"
) representing the
result of applying the vector shift.
Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner rolf@math.unb.ca http://www.math.unb.ca/~rolf
shift
,
shift.ppp
,
rotate
,
affine
W <- owin(c(0,1),c(0,1)) X <- shift(W, c(2,3)) ## Not run: plot(W) # no discernible difference except coordinates are different ## End(Not run)