I want to visualize and analize a networkDynamic
object using R. After creating it:
NetDyn.dynACCP <- networkDynamic(base.net=NetAccionCP, edge.spells=esUS2)
NetDyn.dynACCP
class(NetDyn.dynACCP)
I proceeded to visualize it:
render.d3movie(NetDyn.dynACCP, displaylabels=FALSE, bg="#ffffff",
vertex.border="#333333", vertex.col=vertex, usearrows = TRUE,
vertex.cex = 0.3,
render.par=list(tween.frames=5, show.time = TRUE), script.type="remoteSrc")
with success, however, at this point there appear all nodes even though they become active on a later time period. To collapse the network depending on the edge activity
I used the function reconcile.vertex.activity
, by this way the vertices
become active only when they have edges
activated. Nontheless, the vertex.attribute
called color
based on a type of the nodes turn to be messed. I mean messed, because attributes of some nodes are shifted to other nodes, as a result, they are turned into false.
reconGraphACCP <- reconcile.vertex.activity(NetDyn.dynACCP, mode="expand.to.edges")
reconGraphACCP
I tried to correct this by adding TEAS
or dynamic attributes to the object:
NetDyn.dynACCP <- networkDynamic(base.net=NetAccionCP, edge.spells=esUS2,
vertex.spells=vsUS2, create.TEAs = TRUE, vertex.TEA.names = 'tipoActor')
NetDyn.dynACCP
class(NetDyn.dynACCP)
for this, I also include vertex.spells
with the vertex attribute, now color
as color.active
,
Dynamic (TEA) attributes, Vertex TEAs: animation.x.active, animation.y.active, color.active
Nevertheless, I still cannot make the vertex attribute color.active
to match the correspondent nodes at the visualization. The same happens if I used the function network.extract
to analyze a determinate time period:
plot(network.extract(reconGraphACCP, onset=1992, terminus=1999),
main="1992-1999", vertex.col=color.active)
I would appreciate any help at this point.