randomCoordinates {locationgamer} | R Documentation |
Create random coordinates for network vertexes
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
nNodes <- 10
xMax <- 2000
xMin <- 0
yMax <- 3000
yMin <- 200
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)