View source: R/stat.deletionsPlot.R
stat.deletionsPlot | R Documentation |
Plot mean and stard deviation of the deletion simulation in the form of dual line plots.
stat.deletionsPlot(ant, col.target = NULL, col.random = NULL)
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 |
knockout analysis allows the study of resilience properties of networks when specific nodes are removed. It is usually compared with random deletions.
Sebastian Sosa, Ivan Puga-Gonzalez.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.