rlinegrid

0th

Percentile

Generate grid of parallel lines with random displacement

Generates a grid of parallel lines, equally spaced, inside the specified window.

Keywords
spatial, datagen
Usage
rlinegrid(angle = 45, spacing = 0.1, win = owin())
Arguments
angle
Common orientation of the lines, in degrees anticlockwise from the x axis.
spacing
Spacing between successive lines.
win
Window in which to generate the lines. An object of class "owin" or something acceptable to as.owin.
Details

The grid is randomly displaced from the origin.

Value

  • A line segment pattern (object of class "psp").

See Also

psp, rpoisline

Aliases
  • rlinegrid
Examples
plot(rlinegrid(30, 0.05))
Documentation reproduced from package spatstat, version 1.12-5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.