plottonet {timeordered} | R Documentation |
Plots a time-ordered network.
Description
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.
Usage
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")
Arguments
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. |
Value
None; used for its side-effect of producing a plot.
Author(s)
Benjamin Blonder bblonder@email.arizona.edu.
See Also
Examples
data(ants)
allindivs <- c(union(ants$VertexFrom, ants$VertexTo), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
plottonet(g)
[Package timeordered version 1.0.0 Index]