Skip to contents

Plot Node Vulnerability

Usage

# S3 method for class 'cograph_vulnerability'
plot(x, top = NULL, col = "steelblue", ...)

Arguments

x

A cograph_vulnerability object.

top

Integer or NULL. Show only top N nodes. Default NULL (all).

col

Bar color. Default "steelblue".

...

Additional arguments passed to barplot.

Value

Invisible x.

Examples

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)