env_traits | R Documentation |
Generates species specific traits for density independent environmental responses
env_traits( species, max_r = 5, min_env = 0, max_env = 1, env_niche_breadth = 0.5, optima, plot = TRUE, optima_spacing = "random" )
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 |
dataframe an optima and niche breadth for each species
Patrick L. Thompson, patrick.thompson@zoology.ubc.ca
env_traits(species = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.