plot-methods {EpiContactTrace}R Documentation

plot,-method

Description

The contact structure can be visualized graphically with a plot. The plot gives an overview of the number of ingoing and outgoing holdings connected to the root holding. The black node is the root holding and all white nodes represent holdings that are direct or indirect holdings with ingoing contacts to root. Grey nodes represent holdings that are direct or indirect holdings with outgoing contacts from root.

Usage

## S4 method for signature 'ContactTrace'
plot(x, y, ...)

Arguments

x

The ContactTrace object to plot

y

Not used

...

Additional arguments affecting the plot

References

See Also

show.

Examples

## Not run: 

## Load data
data(transfers)

## Perform contact tracing
contactTrace <- Trace(movements = transfers,
                      root = 2645,
                      tEnd = "2005-10-31",
                      days = 90)

## Plot in- and outgoing contact chain for the root 2645
plot(contactTrace)

## End(Not run)

[Package EpiContactTrace version 0.17.0 Index]