| name | r-network-dynamic |
| description | R dynamic/temporal networks with ndtv, networkDynamic, tsna. Use for time-varying networks and network evolution. |
R Dynamic Networks
Temporal and evolving networks.
networkDynamic
library(networkDynamic)
dnet <- networkDynamic(
network.list = list(net_t1, net_t2, net_t3),
onsets = c(0, 1, 2),
termini = c(1, 2, 3)
)
activate.edges(dnet, onset = 1, terminus = 3, e = 1:5)
deactivate.edges(dnet, onset = 2, terminus = 3, e = 3)
network.extract(dnet, at = 1.5)
network.extract(dnet, onset = 0, terminus = 2)
is.active(dnet, at = 1, e = 1:10)
get.edge.activity(dnet, e = 1)
ndtv (Animation)
library(ndtv)
compute.animation(dnet, animation.mode = "kamadakawai")
render.d3movie(dnet, filename = "network.html")
render.animation(dnet, filename = "network.gif")
render.d3movie(dnet,
vertex.col = "blue",
edge.col = "gray",
displaylabels = TRUE
)
tsna (Temporal Analysis)
library(tsna)
tPath(dnet, v = 1, start = 0, end = 10)
tReach(dnet, direction = "fwd")
tDegree(dnet)
tSnaStats(dnet, snafun = "betweenness")