Delaunay/Voronoi Tessellation.

n_voronoi(data, id, x, y, ..., width = NULL, height = NULL, elementId = NULL)

Arguments

data

a data.frame contains value for create the voronoi.

id

column name of id.

x, y

column names of x and y value.

...

additional arguments.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

element id of widgets

Value

a nivo Voronoi component

See also

Examples

library(nivor) # generate data data <- data.frame( id = 1:50, x = round(rexp(50) * 20, 0), y = round(rexp(50) * 20, 0) ) # the simplest use n_voronoi( data = data, id = "id", x = "x", y = "y", xDomain = c(0, 100), yDomain = c(0, 100), enableLinks = TRUE, linkLineColor = "#cccccc", cellLineColor = "#c6432d", pointSize = 6, pointColor = "#c6432d" )