plottanet | R Documentation |
Plots a time-aggregated network. See igraph.plotting for more details.
plottanet(timeaggregatednetwork, layout = layout.circle,
vertex.label = V(timeaggregatednetwork)$name, vertex.size = 0,
vertex.label.cex = 0.5, edge.arrow.size = 0.5,
edge.width = E(timeaggregatednetwork)$Count/5, ...)
timeaggregatednetwork |
The network to print, an object of the igraph class |
layout |
Graph layout function - see ?layout in igraph |
vertex.label |
Vertex labels. Defaults to the name of each vertex. |
vertex.size |
Size of each vertex. |
vertex.label.cex |
Label size factor. |
edge.arrow.size |
Arrow size. |
edge.width |
Arrow width, defaults to be proportional to edge weight. |
... |
Other arguments to be passed to |
None; used for its side effect of producing a plot.
Benjamin Blonder bblonder@email.arizona.edu.
generatetimeaggregatednetwork
data(ants)
allindivs <- c(union(as.character(ants$VertexFrom), as.character(ants$VertexTo)), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
tan <- generatetimeaggregatednetwork(g, 0, 500)
plottanet(tan,layout=layout.kamada.kawai)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.