Learn R Programming

deldir (version 0.1-25)

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

# S3 method for default
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.

See Also

divchain.deldir() deldir() plot.divchain()

Examples

Run this code
# NOT RUN {
   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))
# }

Run the code above in your browser using DataLab