Description Usage Arguments Details Value Author(s) Examples
Produce some wiggly lines that form a tree structure.
1 | fakeRivers(n = 30, pts = cbind(runif(n), runif(n)))
|
n |
If this is the only argument, start with n points in a unit square. |
pts |
The points to use for initial seeds. |
Use the initial points to create Voronoi tiles. Wiggle the edges. Then use the distance between nodes as edge weight to create a minimum spanning tree. Return the edges of the tree.
A list of 2-column matrix line segments.
Barry Rowlingson
1 2 3 4 | rivers = fakeRivers()
## Not run: plot(c(0,1),c(0,1),type='n')
## Not run: lapply(rivers,lines)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.