Learn R Programming

zetadiv (version 1.2.1)

Plot.zeta.decline: Zeta diversity decline plotting

Description

Plots the output of the functions Zeta.decline.mc and Zeta.decline.ex.

Usage

Plot.zeta.decline(zeta, sd.plot = TRUE, arrange.plots = TRUE)

Arguments

zeta

A list produced by the function Zeta.decline.mc or Zeta.decline.ex.

sd.plot

Boolean value (TRUE or FALSE) indicating if the standard deviation of each zeta diversity value must be plotted.

arrange.plots

Boolean value (TRUE or FALSE) indicating if the graphics device must be divided into 4 subplots.

Value

A plot of the zeta decline with 4 subplots displaying (i) the raw decline, (ii) the ratios of the zeta values (computed as \(\zeta_i / \zeta_{i-1}\)), (iii) the fit in a log plot and (iv) the fit in a log-log plot.

References

Hui C. & McGeoch M.A. (2014). Zeta diversity as a concept and metric that unifies incidence-based biodiversity patterns. The American Naturalist, 184, 684-694.

See Also

Zeta.decline.mc, Zeta.order.mc, Zeta.decline.ex, Zeta.order.ex

Examples

Run this code
# NOT RUN {
utils::data(bird.spec.coarse)
xy.bird <- bird.spec.coarse[1:2]
data.spec.bird <- bird.spec.coarse[3:193]

dev.new(width = 12, height = 4)
zeta.bird <- Zeta.decline.mc(data.spec.bird, orders = 1:5, sam=100, plot = FALSE)
Plot.zeta.decline(zeta.bird)

##########

utils::data(Marion.species)
xy.marion <- Marion.species[1:2]
data.spec.marion <- Marion.species[3:33]

dev.new(width = 12, height = 4)
zeta.marion <- Zeta.decline.ex(data.spec.marion, orders = 1:5, plot = FALSE)
Plot.zeta.decline(zeta.marion)

# }

Run the code above in your browser using DataLab