powered by
Plot Node Vulnerability
# S3 method for cograph_vulnerability plot(x, top = NULL, col = "steelblue", ...)
Invisible x.
x
A cograph_vulnerability object.
cograph_vulnerability
Integer or NULL. Show only top N nodes. Default NULL (all).
Bar color. Default "steelblue".
"steelblue"
Additional arguments passed to barplot.
barplot
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)
Run the code above in your browser using DataLab