as.layered

0th

Percentile

Convert Data To Layered Object

Converts spatial data into a layered object.

Keywords
manip, spatial
Usage
as.layered(X)

## S3 method for class 'default': as.layered(X)

## S3 method for class 'ppp': as.layered(X)

## S3 method for class 'splitppp': as.layered(X)

## S3 method for class 'solist': as.layered(X)

## S3 method for class 'listof': as.layered(X)

## S3 method for class 'msr': as.layered(X)

Arguments
X
Some kind of spatial data.
Details

This function converts the object X into an object of class "layered".

The argument X should contain some kind of spatial data such as a point pattern, window, or pixel image.

If X is a simple object then it will be converted into a layered object containing only one layer which is equivalent to X.

If X can be interpreted as consisting of multiple layers of data, then the result will be a layered object consisting of these separate layers of data.

  • ifXis a list of class"listof"or"solist", thenas.layered(X)consists of several layers, one for each entry in the listX;
  • ifXis a multitype point pattern, thenas.layered(X)consists of several layers, each containing the sub-pattern consisting of points of one type;
  • ifXis a vector-valued measure, thenas.layered(X)consists of several layers, each containing a scalar-valued measure.

Value

  • An object of class "layered" (see layered).

See Also

layered, split.ppp

Aliases
  • as.layered
  • as.layered.default
  • as.layered.ppp
  • as.layered.splitppp
  • as.layered.solist
  • as.layered.listof
  • as.layered.msr
Examples
as.layered(cells)
   as.layered(amacrine)

   P <- rpoispp(100)
   fit <- ppm(P ~ x+y)
   rs <- residuals(fit, type="score")
   as.layered(rs)
Documentation reproduced from package spatstat, version 1.42-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.