spatstat (version 1.20-5)

superimposePSP: 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.

Value

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

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.

See Also

superimpose for superimposing point patterns.

Examples

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

Run the code above in your browser using DataCamp Workspace