Description Usage Arguments Value Examples
Highlights edges in coordinate plot.
1 | addEdgesToPlot(x, g, edge.list, ...)
|
x |
[ |
g |
[ |
edge.list |
[ |
... |
[any] |
[ggplot
] Modified x
.
1 2 3 4 5 6 7 8 9 10 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.