powered by
These functions compute xyz coordinates for each node in the network.
layout_multiforce_ml(mlnetwork, w_in=1, w_inter=1, gravity=0, iterations=100) layout_circular_ml(mlnetwork)
A multilayer network.
An array with weights for intralayer forces, or a single number if weights are the same for all layers.
An array with weights for interlayer forces, or a single number if weights are the same for all layers.
An array with weights for gravity forces, or a single number if weights are the same for all layers.
Number of iterations.
Fatemi, Zahra, Salehi, Mostafa, & Magnani, Matteo (2018). A generalised force-based layout for multiplex sociograms. Social Informatics
Plotting
# NOT RUN { net <- ml_florentine() layout_multiforce_ml(net) l <- layout_circular_ml(net) # } # NOT RUN { plot(net,layout=l) # }
Run the code above in your browser using DataLab