Learn R Programming

SciencesPo (version 1.4.0)

Voronoi: Voronoi tessellation diagram

Description

Computes voronoi tessellation diagrams, and Dirichlet tessellation (after Peter Gustav Lejeune Dirichlet).

Usage

Voronoi(n = 100, d, dim = 1000, method = NULL, seed = 51, plot = TRUE)

Arguments

n
an integer for a finite set of points.
d
an integer for a finite set of dimensions.
dim
the image dimension.
method
the distance computation method. One of euclidean, manhattan, maximum, canberra (currently not implemented).
seed
an integer for random seed.
plot
logical. If TRUE, a plot is returned, else, a data.frame is returned.

Details

https://en.wikipedia.org/wiki/Voronoi_diagram

Examples

Run this code
## Not run:  Voronoi(n=20, d=5, dim=1000) 

Run the code above in your browser using DataLab