Description Usage Arguments Value Examples
View source: R/randomCoordinates.R
Create random coordinates for network vertexes
1 | randomCoordinates(nNodes, xMax, xMin, yMax, yMin)
|
nNodes |
The number of vertexes/ nodes in the network |
xMax |
The maximum x-coordinate of the nodes in the network |
xMin |
The minimum x-coordinate of the nodes in the network |
yMax |
The maximum y-coordinate of the nodes in the network |
yMin |
The minimum y-coordinate of the nodes in the network |
A data frame with dimensions nNodes x 2 containing the x and y coordinates of the network's vertexes
1 2 3 4 5 6 | nNodes <- 10
xMax <- 2000
xMin <- 0
yMax <- 3000
yMin <- 200
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.