as.rectangle

0th

Percentile

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 to as.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

owin, as.owin, bounding.box

Aliases
  • 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 <- as.rectangle(w)
  # returns a 10 x 10 rectangle
Documentation reproduced from package spatstat, version 1.2-1, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.