Window.ppm: Extract Window of Spatial Object

View source: R/ppmclass.R

Window.ppmR Documentation

Extract Window of Spatial Object

Description

Given a spatial object (such as a point pattern or pixel image) in two dimensions, these functions extract the window in which the object is defined.

Usage

 ## S3 method for class 'ppm'
Window(X, ..., from=c("points", "covariates"))

 ## S3 method for class 'kppm'
Window(X, ..., from=c("points", "covariates"))

 ## S3 method for class 'dppm'
Window(X, ..., from=c("points", "covariates"))

 ## S3 method for class 'slrm'
Window(X, ..., from=c("points", "covariates"))

 ## S3 method for class 'msr'
Window(X, ...)

 ## S3 method for class 'quadrattest'
Window(X, ...)



Arguments

X

A spatial object.

...

Ignored.

from

Character string. See Details.

Details

These are methods for the generic function Window which extract the spatial window in which the object X is defined. The argument from applies when X is a fitted two-dimensional point process model (object of class "ppm", "kppm", "slrm" or "dppm"). If from="data" (the default), Window extracts the window of the original point pattern data to which the model was fitted. If from="covariates" then Window returns the window in which the spatial covariates of the model were provided.

Value

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

Author(s)

\spatstatAuthors

.

See Also

Window, Window.ppp, Window.psp.

owin.object

Examples

   A <- ppm(cells ~ 1)
   Window(A)

spatstat.core documentation built on May 18, 2022, 9:05 a.m.