Learn R Programming

timeordered (version 0.9.6)

plottanet: Plots a time-aggregated network.

Description

Plots a time-aggregated network. See igraph.plotting for more details.

Usage

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)

Arguments

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.

Value

  • None; used for its side effect of producing a plot.

See Also

generatetimeaggregatednetwork

Examples

Run this code
data(ants)
allindivs <- c(union(ants$VertexFrom, ants$VertexTo), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
tan <- generatetimeaggregatednetwork(g, 0, 500)
plottanet(tan,layout=layout.kamada.kawai)

Run the code above in your browser using DataLab