Learn R Programming

timeordered (version 1.0.1)

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, ...)

Value

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

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.

...

Other arguments to be passed to igraph's plotting functionality

Author

Benjamin Blonder bblonder@email.arizona.edu.

See Also

generatetimeaggregatednetwork

Examples

Run this code
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)

Run the code above in your browser using DataLab