evolNetwork_rd3 {rD3plot} | R 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
... |
|
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)
[Package rD3plot version 1.0.68 Index]