layout: The chosen layout algorithm. A function layout of the 'igraph' package without parentheses. Default set to 'Fruchterman-Reingold'.
Returns
A two- or three-column matrix, each row giving the coordinates of a vertex, according to the ids of the vertex ids.
Details
In order to facilitate the visualization of multilevel networks, higher level nodes are set in the upper part of the plane and the lower level nodes are set in the lower part of the plane.
Examples
# Check if the network is multilevelis_multilevel(linked_sim)# Generate the layout (x,y) coordinatesl <- layout_multilevel(linked_sim)# Plot the graph using the layoutplot(linked_sim, layout = l)# Using Kamada Kawai algorithml.kk <- layout_multilevel(linked_sim, layout = igraph::layout_with_kk)# Plot the graph with the new layoutplot(linked_sim, layout = l.kk)