I am doing animation using packages igraphand animation. I want to see the changes in the edges, animating 1 line at a time through data.frame. I created a list of igraph objects and would like to make sure that all social actors are represented, even if their string has not yet appeared. They will become isolates until later animation.
How to add an actor to an igraph object as isolation. I use layout.circleand want participants to be consistently posted.
I will start with the data (igraph object) and then some visual effects to show what I want.
g <- structure(list(4, TRUE, c(0, 1, 2, 0), c(1, 2, 0, 3), c(0, 3,
1, 2), c(2, 0, 1, 3), c(0, 2, 3, 4, 4), c(0, 1, 2, 3, 4), list(
c(1, 0, 1), structure(list(), .Names = character(0)), structure(list(
name = c("greg", "teacher", "sam", "sally"), size = c(10,
10, 10, 10)), .Names = c("name", "size")), structure(list(
wc = c(5L, 4L, 10L, 5L), id = 2:5, prop_wc = c(0.208333333333333,
0.166666666666667, 0.416666666666667, 0.208333333333333
), color = c("grey50", "grey50", "grey50", "grey50"),
width = c(3.125, 2.5, 6.25, 3.125)), .Names = c("wc",
"id", "prop_wc", "color", "width")))), class = "igraph")
library(igraph)
plot(g, layout=layout.circle)
## vector of actors to include in this order
## in the igraph object there is no "researcher" or "End" actor
actors <- c("greg", "teacher", "sam", "sally", "researcher", "End")
It looks like:

I would like (do not worry about line weights):

Thus, the animation sequence will be something like this (all participants are included in each frame):

c("researcher", "End") , .
, :
V(g) <- actors
.