make_dynamic_network: Create a dynamic network from periodic edgelists after...

Description Usage Arguments Value Examples

Description

Create a dynamic network from periodic edgelists after filtering edges based on a weight criterion.

Usage

1
2
make_dynamic_network(x, period = "period", weight = "weight",
  threshold = 0.5, cores = 2)

Arguments

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.

Value

A dynamic network which can be rendered with render.d3movie

Examples

 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')

NicolasJBM/grpcomp documentation built on May 28, 2019, 2:21 p.m.