Description Usage Format Examples
155 nodes (vertices) and 228 links (edges). x and y vertices attributes contains spatial coordinates in RGF93 Coordinates Reference System EPSG:2154.
1 |
An object of class "igraph"
; see igraph
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Load data and rename graph as "g"
library(igraph)
data(tomato_anonym)
g = tomato_anonym
## Inspect vertices and edges dataframes
v = get.data.frame(g, "vertices")
e = get.data.frame(g, "edges")
str(v)
str(e)
## Check geographical cooordinates
## By default, igraph uses V(g)$x and V(g)$y as layout coordinates
## We don't need conversion to view the spatial network
plot(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.