## S3 method for class 'psp':
shift(X, vec=c(0,0), ...)
"psp"
)."psp"
) representing the
result of applying the vector shift.vec
.
This is a method for the generic function shift
.shift
,
shift.owin
,
shift.ppp
,
rotate
,
affine
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
plot(X, col="red")
Y <- shift(X, c(0.05,0.05))
plot(Y, add=TRUE, col="blue")
Run the code above in your browser using DataLab