Description Usage Arguments Details Value Author(s) See Also Examples

Converts a line segment pattern to a linear network.

1 2 |

`X` |
Line segment pattern (object of class |

`...` |
Ignored. |

`eps` |
Optional. Distance threshold. If two segment endpoints
are closer than |

`sparse` |
Logical value indicating whether to use a sparse matrix
representation, as explained in |

This command converts any collection of line segments into a linear
network by guessing the connectivity of the network,
using the distance threshold `eps`

.

If any segments in `X`

cross over each other, they are first
cut into pieces using `selfcut.psp`

.

Then any pair of segment endpoints lying closer than `eps`

units apart, is treated as a single vertex. The linear network
is then constructed using `linnet`

.

It would be wise to check the result by plotting the degree of each vertex, as shown in the Examples.

If `X`

has marks, then these are stored in
the resulting linear network `Y <- as.linnet(X)`

,
and can be extracted as `marks(as.psp(Y))`

or `marks(Y$lines)`

.

A linear network (object of class `"linnet"`

).

and \ege

`linnet`

, `selfcut.psp`

,
`methods.linnet`

.

1 2 3 4 5 6 7 8 9 10 11 |

spatstat documentation built on May 20, 2017, 5:36 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.