# superimposePSP

From spatstat v1.16-3
by Adrian Baddeley

##### Superimpose Several Line Segment Patterns

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.

##### 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)
```

*Documentation reproduced from package spatstat, version 1.16-3, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.