While learning about k-NN I am trying to visualize the voronoi plot.
I have used:
library("tripack") x <- testing[,1] y <- testing[,2] plot(voronoi.mosaic(x, y, duplicate="remove"))
Which is giving me:
Is there a way I can see which points have been selected as voronoi centers in the plot??