Delaunay/Voronoi Tessellation.
n_voronoi(data, id, x, y, ..., width = NULL, height = NULL, elementId = NULL)
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 |
elementId | element id of widgets |
a nivo Voronoi component
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" )