Description Usage Arguments Value Examples
Create a dynamic network from periodic edgelists after filtering edges based on a weight criterion.
1 2 | make_dynamic_network(x, period = "period", weight = "weight",
threshold = 0.5, cores = 2)
|
x |
dataframe. List of relationships for one group over several periods. It must have at least 4 columns: one for the period, "from" and "to" for the edges, and an attribute. |
period |
character. Name of the variable indicating the period. |
weight |
character. Name of the variable used to weight edges. |
threshold |
numeric. Minimum value of the weighting attribute for the relationship to be maintained. |
cores |
integer. Number of cores to be used for parallel computing. |
A dynamic network which can be rendered with render.d3movie
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(construct)
data("fictivetmpnet")
dynet <- make_dynamic_network(fictivetmpnet, period = "period", weight = "weight", threshold = 0.5)
library(ndtv)
slice.par <- list(start=0,end=2,interval=1, aggregate.dur=2,rule="latest")
dynet <- compute.animation(dynet,slice.par=slice.par,
verbose=FALSE,
chain.direction = "reverse")
render.d3movie(dynet,
edge.col="darkgray",
displaylabels=TRUE,label.cex=1,
label.col="blue", verbose=FALSE,
main='Temporal Network',
output.mode = 'htmlWidget')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.