evolNetwork_rd3: Create evolving networks.

View source: R/multigraph.R

evolNetwork_rd3R Documentation

Create evolving networks.

Description

evolNetwork_rd3 produce an evolving network.

Usage

evolNetwork_rd3(..., frame = 0, speed = 50, loop = FALSE, lineplots = NULL,
  dir = NULL)

Arguments

...

network_rd3 objects that will be integrated as temporal frames in the evolving network.

frame

a frame ordinal position where the playback will start.

speed

a percentage value for the playback speed of network frames.

loop

allowing continuous repetition.

lineplots

a character vector giving the node attributes to show as lineplots.

dir

a "character" string representing the directory where the graph will be saved.

Value

This function returns a network_rd3 object.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca.

Examples

nets <- list()
N <- data.frame(name=paste0("node",1:2))
E <- data.frame(Source="node1",Target="node2")
nets[["net1"]] <- network_rd3(N, E, repulsion=98, label=FALSE)

for(i in 3:100){
  N <- rbind(N,data.frame(name=paste0("node",i)))
  E <- rbind(E,data.frame(Source=paste0("node",i-1),Target=paste0("node",i)))
  nets[[paste0("net",i-1)]] <- network_rd3(N, E, repulsion=100-i, label=FALSE)
}

nets$speed=100

net <- do.call(evolNetwork_rd3,nets)

## Not run: 
plot(net)

## End(Not run)

rD3plot documentation built on March 31, 2023, 7:15 p.m.