Description Usage Arguments Value See Also Examples
plot.contactnet
is an S3 method that plots the contact network of an S3 object of class contactnet
.
1 2 |
x |
an S3 object of class |
... |
additional arguments that are passed to the generic |
Plot of the contact network.
1 2 3 4 5 6 7 8 9 10 11 | set.seed(12345)
loc<- matrix(cbind(runif(50, 0, 10),runif(50, 0, 10)), ncol = 2, nrow = 50)
net1<- contactnet(type = "powerlaw", location = loc, beta = 1.5, nu = 0.5)
plot(net1)
net2<- contactnet(type = "Cauchy", location = loc, beta = 0.5)
plot(net2)
net3<- contactnet(type = "random", num.id = 50, beta = 0.08)
plot(net3)
# adding some options to the igraph plot:
plot(net3, vertex.color = "red", vertex.size = 8, edge.color = "black",
vertex.label.cex = 0.7, vertex.label.color = "black")
|
Loading required package: coda
Loading required package: parallel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.