View source: R/vulnerability.R
| plot.cograph_vulnerability | R Documentation |
Plot Node Vulnerability
## S3 method for class 'cograph_vulnerability'
plot(x, top = NULL, col = "steelblue", ...)
x |
A |
top |
Integer or NULL. Show only top N nodes. Default NULL (all). |
col |
Bar color. Default |
... |
Additional arguments passed to |
Invisible x.
star <- matrix(c(0,1,1,1, 1,0,0,0, 1,0,0,0, 1,0,0,0), 4, 4)
rownames(star) <- colnames(star) <- c("hub", "a", "b", "c")
v <- cograph::vulnerability(star)
plot(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.