nodeGenerators {grapherator} | R Documentation |
Node generators.
Description
Functions for the placement of nodes / node coordinates in the
Euclidean plane. Function addNodesLHS
generates a space-filling
Latin-Hypercube-Sample (LHS), function addNodesUniform
samples points from a
bivariate uniform distribution, addNodesGrid
generates a regular
grid/lattice of points, addNodesTriangular
generates a regular triangular
grid/lattice and addNodesNormal
generates nodes on basis of a normal
distribution.
Usage
addNodesLHS(n, lower = 0, upper = 1, method = NULL)
addNodesUniform(n, lower, upper)
addNodesTriangular(n, lower, upper)
addNodesGrid(n, lower, upper)
addNodesNormal(n, lower, upper, x.mean, x.sd, y.mean, y.sd)
Arguments
n |
[ |
lower |
[ |
upper |
[ |
method |
[ |
x.mean |
[ |
x.sd |
[ |
y.mean |
[ |
y.sd |
[ |
Value
[list
] List with components:
- coords [
matrix(n, 2)
] Matrix of node coordinates.
- generator [
character(1)
] String description of the generator used.
Note
These functions are not meant to be called directly. Instead, they need
to be assigned to the generator
argument of addNodes
.