Description Usage Arguments Author(s) Examples
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
.
1 2 | ## S3 method for class 'dibbler'
plot(x, y = NULL, col_pal = dibbler_pal2, ...)
|
x |
A |
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
|
... |
Further arguments passed to the |
Thibaut Jombart thibautjombart@gmail.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.