Learn R Programming

multinet (version 3.0.3)

Layout: Layouts

Description

These functions compute xyz coordinates for each node in the network.

Usage

layout_multiforce_ml(mlnetwork, w_in=1, w_inter=1, gravity=0, iterations=100)
layout_circular_ml(mlnetwork)

Arguments

mlnetwork

A multilayer network.

w_in

An array with weights for intralayer forces, or a single number if weights are the same for all layers.

w_inter

An array with weights for interlayer forces, or a single number if weights are the same for all layers.

gravity

An array with weights for gravity forces, or a single number if weights are the same for all layers.

iterations

Number of iterations.

References

Fatemi, Zahra, Salehi, Mostafa, & Magnani, Matteo (2018). A generalised force-based layout for multiplex sociograms. Social Informatics

See Also

Plotting

Examples

Run this code
# 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