powered by
bounding.box(w)
"owin"
"rectangle"
w
Use the function as.rectangle to extract the bounding window frame, which will be a larger rectangle.
as.rectangle
owin
as.owin
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]
Run the code above in your browser using DataLab