as.owin

0th

Percentile

Convert Data To Class owin

Converts data specifying an observation window in any of several formats, into an object of class "owin".

Keywords
spatial
Usage
as.owin(W)
Arguments
W
Data specifying an observation window, in any of several formats described under Details below.
Details

The class "owin" is a way of specifying the observation window for a point pattern. See owin.object for an overview. This function converts data in any of several formats into an object of class "owin" for use by the spatstat package. The argument W may be

  • an object of class"owin"
  • a structure with entriesxrange,yrangespecifying the$x$and$y$dimensions of a rectangle
  • a four-element vector (interpreted as(xmin, xmax, ymin, ymax)) specifying the$x$and$y$dimensions of a rectangle
  • a structure with entriesxl,xu,yl,yuspecifying the$x$and$y$dimensions of a rectangle as(xmin, xmax) = (xl, xu)and(ymin, ymax) = (yl, yu). This will accept objects of classsppused in the Venables and Ripleyspatiallibrary.
  • an object of classppp(in which case the object'swindowstructure will be extracted).

Value

  • An object of class "owin" (see owin.object) specifying an observation window.

See Also

owin.object, owin

Aliases
  • as.owin
Examples
library(spatstat)
 w <- as.owin(c(0,1,0,1))
Documentation reproduced from package spatstat, version 1.3-4, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.