Learn R Programming

spatstat.core (version 2.3-1)

as.layered.msr: Convert Measure To Layered Object

Description

Converts a measure into a layered object.

Usage

# S3 method for msr
as.layered(X)

Arguments

X

A measure (object of class "msr").

Value

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

Details

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

It is a method for the generic as.layered for the class of measures.

If X is a vector-valued measure, then as.layered(X) consists of several layers, each containing a scalar-valued measure.

See Also

as.layered, msr.

Examples

Run this code
# NOT RUN {
   P <- rpoispp(100)
   fit <- ppm(P ~ x+y)
   rs <- residuals(fit, type="score")
   as.layered(rs)
# }

Run the code above in your browser using DataLab