shift.ppp(X, vec=c(0,0), ...)
"ppp"
)."ppp"
) representing the
result of applying the vector shift.vec
.
This is a method for the generic function shift
.shift
,
shift.owin
,
rotate
,
affine
library(spatstat)
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)
Run the code above in your browser using DataLab