edge.coord: Edge coordinates

View source: R/plots.R

edge.coordR Documentation

Edge coordinates

Description

Generates coordinates as a data.frame suitable for ggplot2's geom_segment. This function is not super efficient and should be upgraded.

Usage

edge.coord(graph, layout)

Arguments

graph

a igraph network object

layout

a two-column numerical matrix with coordinates for each vertex of graph

Value

an edge list as a matrix with coordinates of the start and end vertices for each edge.


antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.