## S3 method for class 'owin':
rotate(X, angle=pi/2, \dots, rescue=TRUE, centre=NULL)
"owin"
).TRUE
, the rotated window
will be processed by rescue.rectangle
.as.mask
controlling the resolution of the rotated window, if X
is a
binary pixel mask. Ignored if X
is not a binary mask."centroid"
, "midpoint"
or "bottomleft"
).
The default is the coordinate origin c(0,0)
."owin"
representing the
rotated window.centre
is specified.owin.object
w <- owin(c(0,1),c(0,1))
v <- rotate(w, pi/3)
e <- rotate(w, pi/2, centre="midpoint")
plot(v)
w <- as.mask(letterR)
v <- rotate(w, pi/5)
Run the code above in your browser using DataLab