Layouts
These functions compute xyz coordinates for each node in the network.
layout_multiforce_ml(n, w_in = 1, w_inter = 1, gravity = 0, iterations = 100) layout_circular_ml(n)
n |
A multilayer network. |
w_in |
An array with weights for intralayer forces, or a single number if weights are the same for all layers. When |
w_inter |
An array with weights for interlayer forces, or a single number if weights are the same for all layers. When |
gravity |
An array with weights for gravity forces, or a single number if weights are the same for all layers. This parameter results in the application of a force to the vertices, directed toward the center of the plot. It can be useful when there there are multiple components, so that they do not drift away from each other because of the repulsion force applied to their vertices. |
iterations |
Number of iterations. |
Fatemi, Zahra, Salehi, Mostafa, & Magnani, Matteo (2018). A generalised force-based layout for multiplex sociograms. Social Informatics
net <- ml_florentine() layout_multiforce_ml(net) l <- layout_circular_ml(net) ## Not run: plot(net,layout=l) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.