ExtinctionPlot: Plots the extinctions history of a network

View source: R/Plots.R

ExtinctionPlotR Documentation

Plots the extinctions history of a network

Description

It takes a NetworkTopology class object and plots the network index after every extinction

Usage

ExtinctionPlot(History, Variable = "AccSecExt")

Arguments

History

a NetworkTopology object obtained from the Mostconnected function or the ExtinctionOrder function

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

Author(s)

Derek Corcoran <derek.corcoran.barrios@gmail.com>

M. Isidora Ávila-Thieme <msavila@uc.cl>

See Also

[NetworkExtintion::ExtinctionOrder()]

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")

NetworkExtinction documentation built on March 31, 2023, 9:01 p.m.