Places node coordinates in the two-dimensional euclidean plane.
addCoordinates(graph, n, generator, by.centers = FALSE, par.fun = NULL, ...)
[mcGP
] Multi-objective graph problem.
[mcGP
]
Multi-objective graph problem.
[integer
]
Number of coordinates to place. If by.centers
is FALSE
a single
integer value is expected. Otherwise, a vector v may be passed. In this case
v[i] coordinates are generated for each cluster. However, if a single value is
passed and by.center == TRUE
, each cluster is assigned the same number of
coordinates.
[function(n, ...)
]
Function used to generate coordinates. The generator needs to expect the number
of points to generate as the first argument n
. Additional control argument are
possible.
[logical(1)
]
Should coordinates be placed for each cluster center seperately? This enables
geneation of clustered coordinates.
Default is FALSE
.
[function(cc) | NULL
]
Optional function which is applied to each cluster center cc
before the generation
of coordinates in case by.centers
is TRUE
. This enables to specifically
determine additional parameters for the generator
for each cluster.
[any]
Furhter arguments passed down to generator
.
Other graph generators: addCenters
,
addWeights
, mcGP