superimposePSP {spatstat}R Documentation

Superimpose Several Line Segment Patterns

Description

Superimpose any number of line segment patterns.

Usage

  superimposePSP(..., W=NULL, check=TRUE)

Arguments

... Any number of arguments, each of which is a line segment pattern (object of class "psp").
W Optional. Window for the resulting line segment pattern. An object of class "owin", or something acceptable to as.owin.
check Logical value (passed to psp) determining whether to check the geometrical validity of the resulting line segment pattern.

Details

This function is used to superimpose two or more line segment patterns.

Each of the arguments in ... is a line segment pattern object (of class "psp"). The line segment patterns are not required to have the same window of observation.

The window for the superimposed line segment pattern is specified by W. Its default value is the union of the windows of all the line segment patterns.

If any of the arguments is a marked line segment pattern, then all of them must be. In that case, the result is also a marked line segment pattern.

Value

A line segment pattern (object of class "psp") representing the superposition (union) of all the line segment patterns.

Author(s)

Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

See Also

superimpose for superimposing point patterns.

Examples

   X <- rpoisline(10)
   Y <- as.psp(matrix(runif(40), 10, 4), window=owin())
   Z <- superimposePSP(X, Y)

[Package spatstat version 1.16-0 Index]