compute.animation | R Documentation |
Steps through a networkDynamic object and applies layout algorithms at specified intervals, storing the calculated coordinates in the network for later use by the render.animation function. Generally the layout are done in a sequence with each using the previously calculated positions as initial seed coordinates in order to smooth out the resulting movie. Not all network layout algorithms give good results.
compute.animation(net, slice.par = NULL, animation.mode = "kamadakawai",
seed.coords = NULL, layout.par = list(),
default.dist = NULL, weight.attr = NULL, weight.dist=FALSE,
chain.direction=c('forward','reverse'),
verbose = TRUE,...)
net |
A networkDynamic network object describing the temporal evolution of a network. |
slice.par |
A list of parameters which specify the time steps and aggregation that should be used when moving through the network. Example:
The parameters are:
|
animation.mode |
The name of the network animation layout to be used. These layouts are name network.layout.animate.something but will be matched using the final part of the name. Current useful values are:
|
seed.coords |
(optional) an array of initial positions to be used for the very first layout in the sequence |
layout.par |
A list of parameters to be passed to the layout algorithm. |
default.dist |
The default distance to be used to separate nodes (or disconnected network components). Default to |
weight.attr |
charater providing the name of a (possibly dynamic) numeric edge attribute defining weights for the edges in each time slice. The values |
weight.dist |
logical, defaults to |
chain.direction |
a value of |
verbose |
If true, additional information about the layout process and progress will be returned to console. |
... |
possible additional arguments to be passed to sub processes |
This function is under active development so implementation and parameters will continue to change.
Invisibly returns original network argument (which is also modified in-place), with the addition of a network variable slice.par
storing the slice parameters used, and dynamic node attributes animation.x
and animation.y
storing the coordinates calculated for each time point.
Skye Bender-deMoll, and the statnet team.
See docs for specific layout functions.
Bender-deMoll, S., Morris, M. and Moody, J. (2008) Prototype Packages for Managing and Animating Longitudinal Network Data: dynamicnetwork and rSoNIA Journal of Statistical Software 24:7.
Krivitsky P and Handcock M (2012). Fit, Simulate and Diagnose Models for Network Evoluation based on Exponential-Family Random Graph Models. Version 3.0-999. Project home page at https://statnet.org, https://cran.r-project.org/package=tergm.
Butts CT (2008). network: A Package for Managing Relational Data in R. Journal of Statistical Software, 24(2). \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v024.i02")}.
Skye Bender-deMoll and McFarland, Daniel A. (2006) The Art and Science of Dynamic Network Visualization. Journal of Social Structure. Volume 7, Number 2 https://www.cmu.edu/joss/content/articles/volume7/deMollMcFarland/
See also layout.distance
, render.animation
, network.layout.animate.MDSJ
,ndtv, package vignette (vignette('ndtv')
) for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.