Dividing chain; default method.
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.
## Default S3 method: divchain(x, y, z, ...)
x,y |
These provide the coordinates of the set of points being
tesselated. Argument |
z |
A factor specifying “auxiliary” values or
“weights” If this argument is left |
... |
Other arguments to be passed to |
An object of class divchain
. See
divchain.deldir()
for details.
This function was created in response to a question asked
on stackoverflow.com
by a user named “Dan”.
Rolf Turner r.turner@auckland.ac.nz
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.