| bounding.box {spatstat} | R Documentation |
Find the smallest rectangle containing a given window.
bounding.box(w)
w |
A window (object of class "owin"). |
This function finds the smallest rectangle (with sides parallel to
the coordinate axes) containing the
window represented by w.
Use the function as.rectangle to extract the
bounding window frame, which will be a larger 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
library(spatstat) 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 <- bounding.box(w) # returns rectangle [1,3] x [2,7]