Learn R Programming

pez (version 1.2-4)

trait.asm: Produces simulated communities based on species attributes

Description

trait.asm calculates phylogenetic biodiversity metrics

Usage

trait.asm(
  a,
  m = 1000,
  meanSR = NULL,
  interval = c(0.001, 10),
  exponential = TRUE,
  Pscale = 1
)

Value

Y presence/absence matrix

P probabilities

a the supplied trait

exponential if the exponential distribution was used

meanSR supplied meanSR value

std estimated sd

Arguments

a

species attributes (e.g., traits like body size)

m

number of communities to be simulated

meanSR

target mean species richness across simulated communities

interval

adjust to obtain meanSR

exponential

use the exponential distribution when simulating communities

Pscale

adjust this value when not using the exponential distribution in order to scale the species richnesses in the simulated communities

Author

M.R. Helmus

Details

Simulates a set of communties based on the supplied attribute (trait) where larger values make it more likely for species to be in the communities.

References

Helmus M., Mercado-Silva N. & Vander Zanden M.J. (2013). Subsidies to predators, apparent competition and the phylogenetic structure of prey communities. Oecologia, 173, 997-1007.

Examples

Run this code
if (FALSE) {
 data(laja)
 trait.asm(laja$fish.pref)
}

Run the code above in your browser using DataLab