stat.deletionsPlot: Plot for network deletion simulations

View source: R/stat.deletionsPlot.R

stat.deletionsPlotR Documentation

Plot for network deletion simulations

Description

Plot mean and stard deviation of the deletion simulation in the form of dual line plots.

Usage

stat.deletionsPlot(ant, col.target = NULL, col.random = NULL)

Arguments

ant

an ant object returned by function sta.deletion

col.target

a character indicating the color of the target deletions

col.random

a character indicating the color of the random deletions

Details

knockout analysis allows the study of resilience properties of networks when specific nodes are removed. It is usually compared with random deletions.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

Examples

M=matrix(sample(c(1:20),100,TRUE),ncol=10,nrow=10)
diag(M)=0
attr=sample(c('a','b'),10,TRUE)
target='a' #categorical target node attributes
t=stat.deletions(M,attr = attr,target = target,nsim = 2,ndel=4)
stat.deletionsPlot(t)

SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.