View source: R/ITNdynamic_function.R
ITNdynamic | R Documentation |
This function produces a dynamic network object for ITNs. It cleans and adjusts the individual networks, so they are the same size. This dynamic network object can then be used to create animations, mapping changes over time and to calculate temporal network statistics
ITNdynamic(NETlist)
NETlist |
A list of International Trade Networks (igraph objects) |
It returns the Dynamic Network Object
require(igraph)
##Create a set of random International Trade Networks (igraph objects)
##and add vertex names
ITN1<-erdos.renyi.game(75,0.05,directed = TRUE)
V(ITN1)$name<-1:vcount(ITN1)
ITN2<-erdos.renyi.game(100,0.01,directed = TRUE)
V(ITN2)$name<-1:vcount(ITN2)
ITN3<-erdos.renyi.game(55,0.1,directed = TRUE)
V(ITN3)$name<-1:vcount(ITN3)
##Create network list
NETlist<-list(ITN1,ITN2,ITN3)
##Create Dynamic Network Object
ITNdyn<-ITNdynamic(NETlist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.