plotnetwork: Plot weighted transmission network

Description Usage Arguments Examples

View source: R/plotnetwork.R

Description

For a given weighted adjacency matrix, plots a directed network illustrating transmission probabilities.

Usage

1
plotnetwork(probmat, labels, arrlen = 0.15, scale = 1, ...)

Arguments

probmat

Transmission probability matrix. The [i,j]th element represents the probability that person i infected person j.

labels

Labels representing row and columns in the probability matrix.

arrlen

Length of arrow heads (see arrows).

scale

Scaling for colors according to probability values.

...

Additional arguments to be passed to plot.

Examples

1
2
3
4
data(outbreak)
K <- networkmat(outbreak$epidata[,1], outbreak$epidata[,4])
plotnetwork(K, labels=outbreak$epidata[,1])
		

seedy documentation built on May 29, 2017, 10:58 a.m.