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

divchain.default

Dividing chain; default method.


Description

Create the “dividing chain” of the Dirchlet tesselation of a given set of points having distinguishing (categorical) “weights”. This dividing chain consists of those edges of Dirichlet tiles which separate points having different values of the given weights.

Usage

## Default S3 method:
divchain(x, y, z, ...)

Arguments

x,y

These provide the coordinates of the set of points being tesselated. Argument x may be a data frame or a list, in particular one of class ppp. (See the spatstat package.) For a full description see the discussion of these arguments in the help for deldir().

z

A factor specifying “auxiliary” values or “weights” If this argument is left NULL then it is extracted, if possible, from the components of x. See deldir() for further details.

...

Other arguments to be passed to deldir.

Value

An object of class divchain. See divchain.deldir() for details.

Note

This function was created in response to a question asked on stackoverflow.com by a user named “Dan”.

Author(s)

See Also

Examples

set.seed(42)
   x    <- runif(50)
   y    <- runif(50)
   z    <- factor(kmeans(cbind(x,y),centers=4)$cluster)
   dcxy <- divchain(x,y,z,rw=c(0,1,0,1))

deldir

Delaunay Triangulation and Dirichlet (Voronoi) Tessellation

v0.2-10
GPL (>= 2)
Authors
Rolf Turner
Initial release
2021-02-16

We don't support your browser anymore

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