Add a voronoi figure to the chart.
fig_voronoi(g, ..., sync = TRUE, data = NULL, inherit_asp = TRUE)
| g | An object of class |
|---|---|
| ... | Options to pass to the figure, including |
| sync | Whether to sync the axis data (align) with that
used in other figures, set to |
| data | A dataset ( |
| inherit_asp | Whether to inherit the aspects paseed to
|
Requires the x, y, and color arguments.
df <- data.frame( x = runif(25, 1, 500), y = runif(25, 1, 500), value = runif(25, 1, 500) ) g2(df, asp(x, y, color = value)) %>% fig_voronoi()