plot.dibbler: Plot input data for dibbler

Description Usage Arguments Author(s) Examples

Description

This function plots dibbler's input data as a network, using different symbols and colors for different types of nodes. It uses the package network.

Usage

1
2
## S3 method for class 'dibbler'
plot(x, y = NULL, col_pal = dibbler_pal2, ...)

Arguments

x

A dibbler object.

y

An optional variable from the linelist defining groups used to color the network.

col_pal

A color palette to be used for the groups; defaults to dibbler_pal2.

...

Further arguments passed to the plot.epicontacts method.

Author(s)

Thibaut Jombart thibautjombart@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
if (require(outbreaks)) {

  v_data <- s_enteritidis_pt59$graph
  n_data <- data.frame(id = names(s_enteritidis_pt59$cluster),
                       cluster = s_enteritidis_pt59$cluster)

  x <- make_dibbler(v_data, n_data)
  x

  plot(x)
  plot(x, "cluster")
}

## End(Not run)

thibautjombart/dibbler documentation built on May 31, 2019, 9:56 a.m.