bounding.box {spatstat}R Documentation

Bounding Box of a Window

Description

Find the smallest rectangle containing a given window.

Usage

 bounding.box(w)

Arguments

w A window (object of class "owin").

Details

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.

Value

A window (object of class "owin") of type "rectangle" representing a rectangle.

Author(s)

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

See Also

owin, as.owin, as.rectangle

Examples

  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]

[Package Contents]