Description Usage Arguments Value Examples
ForceAtlas2 layout
1 2 3 4 |
graph |
An igraph network or a data frame of three columns: source, target, and weights. |
directed |
Logical. TRUE if the network is directed. Ignored if graph is an igraph object. |
iterations |
Number of iterations to be performed. |
linlog |
Logical. If TRUE the algorithm uses logarithmic attraction force 'F <- log (1+F)' |
pos |
A data frame or matrix (NumberOfNodes x dimension) of the initial locations of points. If NULL the initial positions are random. |
nohubs |
Logical. If TRUE nodes with high indegree have more central position than nodes with outdegree (for directed graphs). |
k |
Is the repel constant: the greater the constant k the stronger the repulsion force between points. |
gravity |
Gravity constant: indicates how strongly the nodes should be attracted to the center of gravity. |
ks |
Speed constant: the greater the value of 'ks' the more movement the nodes make under the acting forces. |
ksmax |
Limits the speed from above. |
delta |
Modify attraction force, the weights are raised to the power of 'delta' |
center |
Center of gravity. |
dim |
Dimension of the positions. |
plotstep |
is the frequency of plotting intermediate iterations. |
plotlabels |
Logical. If TRUE the labels should be included in the intermediate interations plot |
tolerance |
Tolerance to swinging constant. |
When graph is an igraph object, the function returns a matrix with the positions. If graph is a data frame, this is a data frame with the names of the nodes and the positions.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.