forked from derek-corcoran-barrios/NetworkExtinction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtinctionPlot.Rd
38 lines (36 loc) · 1.14 KB
/
ExtinctionPlot.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Plots.R
\name{ExtinctionPlot}
\alias{ExtinctionPlot}
\title{Plots the extinctions history of a network}
\usage{
ExtinctionPlot(History, Variable = "AccSecExt")
}
\arguments{
\item{History}{a NetworkTopology object obtained from the Mostconnected function
or the ExtinctionOrder function}
\item{Variable}{the variable of the NetworkTopology object that you want as a y variable}
}
\value{
A plot of number of extinctions in the x axis vs the choosen variable in the Y axis
}
\description{
It takes a NetworkTopology class object and plots the network index
after every extinction
}
\examples{
# If you don't specify the y variable it will plot the secondary extinctions
# by default
data("net")
history <- SimulateExtinctions(Network = net, Method = "Mostconnected")
ExtinctionPlot(History = history$sims)
# You can also specify the variable to be ploted in the y axis
ExtinctionPlot(History = history$sims, Variable = "Link_density")
}
\seealso{
[NetworkExtintion::ExtinctionOrder()]
}
\author{
Derek Corcoran <[email protected]>
M. Isidora Ávila-Thieme <[email protected]>
}