Generate edge layout for netify object
get_edge_layout.Rd
This function prepares the edge data for visualization by calculating the coordinates
for line segments representing edges based on the node layouts provided by get_node_layout
.
It is specifically tailored for use with netify
objects and their corresponding layout data.
Arguments
- netlet
A
netify
object used to derive the graph and edges.- nodes_layout
A matrix or a list of matrices representing node layouts for visualization. Each matrix should include the following columns: -
actor
: A character string identifying each node. -x
: Numeric, the x-coordinate of the node in the layout. -y
: Numeric, the y-coordinate of the node in the layout. In longitudinal studies,nodes
should be a list where each element is a matrix corresponding to a specific time point, named with the respective year or time label (e.g., '2008', '2009'). Each matrix must maintain consistent structure and naming conventions for time points.