Learn R Programming

spatstat.geom (version 3.7-0)

polartess: Tessellation Using Polar Coordinates

Description

Create a tessellation with tiles defined by polar coordinates (radius and angle).

Usage

polartess(W, ..., nradial = NULL, nangular = NULL,
          radii = NULL, angles = NULL,
          origin = NULL, sep = "x")

Arguments

Value

A tessellation (object of class "tess").

Details

A tessellation will be formed from tiles defined by intervals in the polar coordinates \(r\) (radial distance from the origin) or \(\theta\) (angle from the horizontal axis) or both. These tiles look like the cells on a dartboard.

If the argument radii is given, tiles will be demarcated by circles centred at the origin, with the specified radii. If radii is absent but nradial is given, then radii will default to a sequence of nradial+1 radii equally spaced from zero to the maximum possible radius. If neither radii nor nradial are given, the tessellation will not include circular arc boundaries.

If the argument angles is given, tiles will be demarcated by lines emanating from the origin at the specified angles. The angular values can be any real numbers; they will be interpreted as angles in radians modulo 2*pi, but they must be an increasing sequence of numbers. If angles is absent but nangular is given, then angles will default to a sequence of nangular+1 angles equally spaced from 0 to 2*pi. If neither angles nor nangular are given, the tessellation will not include linear boundaries.

See Also

intersect.tess

To construct other kinds of tessellations, see tess, quadrats, hextess, venn.tess, dirichlet, delaunay, quantess, bufftess and rpoislinetess.

Examples

Run this code
  Y <- c(2.8, 1.5)
  plot(polartess(letterR, nangular=6, radii=(0:4)/2, origin=Y),
       do.col=TRUE)

Run the code above in your browser using DataLab