as.owin {spatstat} | R Documentation |
Converts data specifying an observation window
in any of several formats, into an object of class "owin"
.
as.owin(W)
W |
Data specifying an observation window, in any of several formats described under Details below. |
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
"owin"
xrange
, yrange
specifying the
x and y dimensions of a rectangle
(xmin, xmax, ymin, ymax)
)
specifying the x and y dimensions of a rectangle
xl
, xu
, yl
, yu
specifying the x and y dimensions of a rectangle
as (xmin, xmax) = (xl, xu)
and
(ymin, ymax) = (yl, yu)
. This will accept objects of
class spp
used in the Venables and Ripley spatial
library.
ppp
(in which case the object's window
structure will be
extracted).
An object of class "owin"
(see owin.object
)
specifying an observation window.
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 <- as.owin(c(0,1,0,1))