spatstat (version 1.39-0)

WindowOnly: 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, \dots, from=c("points", "covariates"))

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

## S3 method for class 'lpp': Window(X, \dots)

## S3 method for class 'lppm': Window(X, \dots)

## S3 method for class 'msr': Window(X, \dots)

## S3 method for class 'quad': Window(X, \dots)

## S3 method for class 'quadratcount': Window(X, \dots)

## S3 method for class 'quadrattest': Window(X, \dots)

## S3 method for class 'tess': Window(X, \dots)

## S3 method for class 'layered': Window(X, \dots)

## S3 method for class 'distfun': Window(X, \dots)

## S3 method for class 'nnfun': Window(X, \dots)

## S3 method for class 'funxy': Window(X, \dots)

## S3 method for class 'rmhmodel': Window(X, \dots)

## S3 method for class 'leverage.ppm': Window(X, \dots)

## S3 method for class 'influence.ppm': Window(X, \dots)

Arguments

X
A spatial object.
...
Ignored.
from
Character string. See Details.

Value

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

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 point process model (object of class "ppm" or "kppm"). 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.

See Also

Window, Window.ppp, Window.psp. owin.object

Examples

Run this code
X <- quadratcount(cells, 4)
   Window(X)

Run the code above in your browser using DataCamp Workspace