plottonet | R Documentation |
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")
g |
The time-ordered network to plot |
path |
If supplied, a particular list of vertices comprising a causally-permitted path that will be highlighted in the final illustration. |
edgecolor |
The color of all edges in the graph. |
edgehighlightcolor |
The color of the vertx path to be highlighted. |
vertex.size |
Vertex size. See igraph.plotting for more details. |
edge.arrow.size |
Edge arrow size. |
edge.width |
Edge width. |
vertex.color |
Vertex color. |
vertex.label.cex |
Vertex label size factor. |
vertex.frame.color |
Vertex frame color. |
vertex.label.color |
Vertex label color. |
None; used for its side-effect of producing a plot.
Benjamin Blonder bblonder@email.arizona.edu.
generatetonetwork
data(ants)
allindivs <- c(union(ants$VertexFrom, ants$VertexTo), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
plottonet(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.