Learn R Programming

SciencesPo (version 1.3.9)

voronoi: Voronoi diagram

Description

Computes the voronoi diagram.

Usage

voronoi(p, n = 100, dim = 1000, plot = TRUE)

Arguments

p
An integer for the size of the
n
An integer for the size of
dim
The dimension of the image.
plot
Logical, if TRUE, the plot is returned, else, the data.frame is returned.

Details

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

Examples

Run this code
voronoi(p=2, n=20, dim=1000)

Run the code above in your browser using DataLab