How do I specify the number of nodes in voronoi.mosaic in R

r
voronoi.mosaic

#1

hello,

Voronoi plots are used to visualize voronoi decomposition of the data in kNN.Hence I am trying to use it for the same.My code for creating a voronoi.obj:

library("tripack")
x <- testing[,1]
y <- testing[,2]
voronoi.obj <- voronoi.mosaic(x, y, duplicate="remove")
voronoi.obj

As can be seen 60 nodes have been created,whereas the number of data points is only 45.
How can i specify the number of nodes to be created??
What I mean is:If i want 20 voronoi centers in my data,how do i specify that while creating the voronoi obj??
the plot(voronoi.obj) gives:

Can someone pls help me with this??