powered by
Plots a time-ordered network with vertices ordinated along the x-axis and time increasing along the y-axis. Interactions are drawn as horizontal lines; vertices are connected to themselves in time by vertical lines.
plottonet(g, path = NULL, edgecolor = "gray", edgehighlightcolor = "red", vertex.size = 0.01, edge.arrow.size = 0.1, edge.width = 0.2, vertex.color = NA, vertex.label.cex = 0.1, vertex.frame.color = NA, vertex.label.color = "black")
None; used for its side-effect of producing a plot.
The time-ordered network to plot
If supplied, a particular list of vertices comprising a causally-permitted path that will be highlighted in the final illustration.
The color of all edges in the graph.
The color of the vertx path to be highlighted.
Vertex size. See igraph.plotting for more details.
Edge arrow size.
Edge width.
Vertex color.
Vertex label size factor.
Vertex frame color.
Vertex label color.
Benjamin Blonder bblonder@email.arizona.edu.
generatetonetwork
data(ants) allindivs <- c(union(as.character(ants$VertexFrom), as.character(ants$VertexTo)), "NULL1", "NULL2") g <- generatetonetwork(ants, allindivs) plottonet(g)
Run the code above in your browser using DataLab