addEdgesToPlot {grapherator} | R Documentation |
Highlight edges in graph.
Description
Highlights edges in coordinate plot.
Usage
addEdgesToPlot(x, g, edge.list, ...)
Arguments
x |
[ |
g |
[ |
edge.list |
[ |
... |
[any] |
Value
[ggplot
] Modified x
.
Examples
## Not run:
g = graph(0, 100)
g = addNodes(g, n = 10, generator = addNodesUniform)
g = addEdges(g, generator = addEdgesComplete)
pl = plot(g)$pl.coords
el = matrix(c(1, 2, 1, 3, 4, 5, 3, 4), nrow = 2L)
pl = addEdgesToPlot(pl, g, el)
print(pl)
## End(Not run)
[Package grapherator version 1.0.0 Index]