Description Usage Arguments Value Author(s) See Also Examples
This functions extracts polygons from a voronoi.mosaic
object.
1 | voronoi.polygons(voronoi.obj)
|
voronoi.obj |
object of class |
Returns an object of class voronoi.polygons
with unamed list
elements for each polygon. These list
elements are matrices with columns x
and y
.
Denis White
plot.voronoi.polygons
,voronoi.mosaic
1 2 3 4 5 6 7 8 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
data(tritest)
tritest.vm <- voronoi.mosaic(tritest$x,tritest$y)
tritest.vp <- voronoi.polygons(tritest.vm)
tritest.vp
|
[[1]]
x y
[1,] 0.5000000 0.3062500
[2,] 0.2392857 0.1107143
[3,] 0.5000000 -0.7583333
[4,] 0.7607143 0.1107143
[[2]]
x y
[1,] 0.3062500 0.5000000
[2,] 0.1107143 0.7607143
[3,] -0.7583333 0.5000000
[4,] 0.1107143 0.2392857
[[3]]
x y
[1,] 0.8892857 0.7607143
[2,] 0.6937500 0.5000000
[3,] 0.8892857 0.2392857
[4,] 1.7583333 0.5000000
[[4]]
x y
[1,] 0.5000000 1.7583333
[2,] 0.2392857 0.8892857
[3,] 0.5000000 0.6937500
[4,] 0.7607143 0.8892857
[[5]]
x y
[1,] 0.5000000 0.5000000
[2,] 0.5000000 0.5000000
[3,] 0.3062500 0.5000000
[4,] 0.1107143 0.2392857
[5,] 0.2392857 0.1107143
[6,] 0.5000000 0.3062500
[[6]]
x y
[1,] 0.7607143 0.1107143
[2,] 0.5000000 0.3062500
[3,] 0.5000000 0.5000000
[4,] 0.6937500 0.5000000
[5,] 0.8892857 0.2392857
[[7]]
x y
[1,] 0.6937500 0.5000000
[2,] 0.5000000 0.5000000
[3,] 0.5000000 0.5000000
[4,] 0.5000000 0.6937500
[5,] 0.7607143 0.8892857
[6,] 0.8892857 0.7607143
[[8]]
x y
[1,] 0.1107143 0.7607143
[2,] 0.2392857 0.8892857
[3,] 0.5000000 0.6937500
[4,] 0.5000000 0.5000000
[5,] 0.3062500 0.5000000
attr(,"class")
[1] "voronoi.polygons"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.