as.rectangle
From spatstat v1.7-11
by Adrian Baddeley
Window Frame
Get the window frame of an (irregular) window
- Keywords
- spatial
Usage
as.rectangle(...)
Arguments
- ...
- A window. Either an object of class
"owin"
, or other data determining such a window. The argument(s) are passed toas.owin
.
Details
This function just extracts the outer bounding rectangle
of the window w
as given by its elements xrange,yrange
.
Use the function bounding.box
to compute the smallest
bounding rectangle.
Value
- A window (object of class
"owin"
) of type"rectangle"
representing a rectangle.
See Also
Examples
w <- owin(c(0,10),c(0,10), poly=list(x=c(1,2,3,2,1), y=c(2,3,4,6,7)))
r <- as.rectangle(w)
# returns a 10 x 10 rectangle
Community examples
Looks like there are no examples yet.