domain(X, ...) ## S3 method for class 'ppp':
domain(X, \dots)
## S3 method for class 'psp':
domain(X, \dots)
## S3 method for class 'im':
domain(X, \dots)
## S3 method for class 'ppx':
domain(X, \dots)
## S3 method for class 'pp3':
domain(X, \dots)
## S3 method for class 'lpp':
domain(X, \dots)
## S3 method for class 'ppm':
domain(X, \dots, from=c("points", "covariates"))
## S3 method for class 'kppm':
domain(X, \dots, from=c("points", "covariates"))
## S3 method for class 'dppm':
domain(X, \dots, from=c("points", "covariates"))
## S3 method for class 'lpp':
domain(X, \dots)
## S3 method for class 'lppm':
domain(X, \dots)
## S3 method for class 'msr':
domain(X, \dots)
## S3 method for class 'quad':
domain(X, \dots)
## S3 method for class 'quadratcount':
domain(X, \dots)
## S3 method for class 'quadrattest':
domain(X, \dots)
## S3 method for class 'tess':
domain(X, \dots)
## S3 method for class 'im':
domain(X, \dots)
## S3 method for class 'layered':
domain(X, \dots)
## S3 method for class 'distfun':
domain(X, \dots)
## S3 method for class 'nnfun':
domain(X, \dots)
## S3 method for class 'funxy':
domain(X, \dots)
## S3 method for class 'rmhmodel':
domain(X, \dots)
## S3 method for class 'leverage.ppm':
domain(X, \dots)
## S3 method for class 'influence.ppm':
domain(X, \dots)
X
.
Typically a window (object of class "owin"
),
a three-dimensional box ("box3"
), a multidimensional
box ("boxx"
) or a linear network ("linnet"
).domain
is generic. For a spatial object X
in any number of dimensions,
domain(X)
extracts the spatial domain in which X
is
defined.
For a two-dimensional object X
, typically domain(X)
is the same as domain(X)
.
The exception is that, if X
is a point pattern on a linear network
(class "lpp"
) or a point process model on a linear network
(class "lppm"
), then domain(X)
is the linear network
on which the points lie, while Window(X)
is the two-dimensional
window containing the linear network.
The argument from
applies when X
is a fitted
point process model
(object of class "ppm"
, "kppm"
or "dppm"
).
If from="data"
(the default),
domain
extracts the window of the original point
pattern data to which the model was fitted.
If from="covariates"
then domain
returns the
window in which the spatial covariates of the model were provided.
domain
domain(cells)
domain(bei.extra$elev)
domain(chicago)
Run the code above in your browser using DataLab