Learn R Programming

cograph (version 2.7.2)

plot.cograph_vulnerability: Plot Node Vulnerability

Description

Plot Node Vulnerability

Usage

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

Value

Invisible x.

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.

Examples

Run this code
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