env_traits: Generate Species Env. Traits

View source: R/sim_setup.R

env_traitsR Documentation

Generate Species Env. Traits

Description

Generates species specific traits for density independent environmental responses

Usage

env_traits(
  species,
  max_r = 5,
  min_env = 0,
  max_env = 1,
  env_niche_breadth = 0.5,
  optima,
  plot = TRUE,
  optima_spacing = "random"
)

Arguments

species

number of species to simulate

max_r

intrinsic growth rate in optimal environment, can be single value or vector of length species

min_env

minium environmental optima

max_env

minium environmental optima

env_niche_breadth

standard deviation of environmental niche breadth, can be single value or vector of length species

optima

optional values of environmental optima, should be a vector of length species

plot

option to show plot of environmental variation

optima_spacing

"even" or "random" to specify how optima should be distributed

Value

dataframe an optima and niche breadth for each species

Author(s)

Patrick L. Thompson, patrick.thompson@zoology.ubc.ca

Examples

env_traits(species = 10)


plthompson/mcomsimr documentation built on Feb. 6, 2023, 8:20 a.m.