Last data update: 2014.03.03

R: Calculate the expected species abundance distribution of the...
expected.SADR Documentation

Calculate the expected species abundance distribution of the standard neutral model, given theta, m and J

Description

This function calculates the expected species abundance distribution of the standard neutral model given theta, m and J, sensu equation 6 from Etienne and Alonso (2005).

Usage

expected.SAD(theta, m, J)

Arguments

theta

Fundamental biodiversity number theta

m

migration parameter

J

Total number of individuals in the local community

Value

A vector containing the abundances binned into log2 bins (sensu Preston).

Author(s)

Thijs Janzen & Bart Haegeman

References

Etienne, R.S., & Alonso, D. (2005). A dispersal-limited sampling theory for species and alleles. Ecology Letters, 8(100), 1147-1156.

Examples

SAD <- expected.SAD(theta=42, m = 0.1, J = 200);
barplot(SAD,names.arg=0:(length(SAD)-1),
	xlab="Number of individuals (log2)",
	ylab="Number of Species" )

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GUILDS)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GUILDS/expected.SAD.Rd_%03d_medium.png", width=480, height=480)
> ### Name: expected.SAD
> ### Title: Calculate the expected species abundance distribution of the
> ###   standard neutral model, given theta, m and J
> ### Aliases: expected.SAD
> 
> ### ** Examples
> 
> SAD <- expected.SAD(theta=42, m = 0.1, J = 200);
> barplot(SAD,names.arg=0:(length(SAD)-1),
+ 	xlab="Number of individuals (log2)",
+ 	ylab="Number of Species" )
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>