| as.rectangle {spatstat} | R Documentation | 
Get the window frame of an (irregular) window
as.rectangle(...)
... | 
A window. Either an object of class "owin",
or other data determining such a window. The argument(s)
are passed to as.owin. | 
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.
A window (object of class "owin")
of type "rectangle" representing a rectangle.
Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner rolf@math.unb.ca http://www.math.unb.ca/~rolf
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