## S3 method for class 'psp':
rotate(X, angle=pi/2, \dots)
"psp"
)."psp"
representing the
rotated line segment pattern.Rotation of binary image masks is not yet implemented.
psp.object
,
rotate.owin
,
rotate.ppp
oldpar <- par(mfrow=c(2,1))
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
plot(X, main="original")
Y <- rotate(X, pi/4)
plot(Y, "rotated")
par(oldpar)
Run the code above in your browser using DataLab