Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extrapolate.psp

Extrapolate Line Segments to Obtain Infinite Lines


Description

Given a spatial pattern of line segments, extrapolate the segments to infinite lines.

Usage

extrapolate.psp(x, ...)

Arguments

x

Spatial pattern of line segments (object of class "psp").

...

Ignored.

Details

Each line segment in the pattern x is extrapolated to an infinite line, drawn through its two endpoints. The resulting pattern of infinite lines is returned as an object of class "infline".

If a segment's endpoints are identical (so that it has zero length) the resulting infinite line is vertical (i.e. parallel to the y coordinate axis).

Value

An object of class "infline" representing the pattern of infinite lines. See infline for details of structure.

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.

See Also

Examples

X <- psp(runif(4), runif(4), runif(4), runif(4), window=owin())
   Y <- extrapolate.psp(X)
   plot(X, col=3, lwd=4)
   plot(Y, lty=3)
   Y

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.