OCN_to_igraph | R Documentation |
Function that transforms an OCN into an igraph object.
OCN_to_igraph(OCN, level)
OCN |
A |
level |
Aggregation level at which the OCN is converted into an igraph object. It
must be equal to either |
An igraph
object.
# 1) transform a 20x20 OCN, at the AG level, into a graph object
OCN <- aggregate_OCN(landscape_OCN(OCN_20), thrA = 4)
g <- OCN_to_igraph(OCN, level = "AG")
plot(g, layout = matrix(c(OCN$AG$X,OCN$AG$Y), ncol = 2, nrow = OCN$AG$nNodes))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.