randomCoordinates {locationgamer} | R Documentation |
Create random coordinates for network vertexes
Description
Create random coordinates for network vertexes
Usage
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)
Arguments
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 |
Value
A data frame with dimensions nNodes x 2 containing the x and y coordinates of the network's vertexes
Examples
nNodes <- 10
xMax <- 2000
xMin <- 0
yMax <- 3000
yMin <- 200
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)
[Package locationgamer version 0.1.0 Index]