cgSim: Community Genetics simulator using the methods of Shuster et...

Description Usage Arguments Author(s) Examples

View source: R/cgSim.R

Description

Function for simulating the community level effects of genetic variation in a clonal foundation species.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
cgSim(
  trees = "simulated trees",
  insects = "simulated insects",
  z = "selection strength",
  VeT = "tree trait variance",
  Ve = "insect environmental variance",
  VeN = "interaction environmental variance",
  K = "insect carrying capacity",
  k.asym = FALSE,
  k.min = 5,
  k.max = 100,
  cf = "correction factor",
  artpop.only = FALSE
)

Arguments

trees

Matrix of phenotypic values for a set of trees.

insects

Matrix of bi-allelic loci for arthropod species.

z

Selection strength.

VeT

tree trait variance

Ve

insect environmental variance

VeN

interaction environmental variance

K

insect carrying capacity

k.asym

Logical: Should default K be asymptotic?

k.min

Minimum value for K.

k.max

Maximum value for K

cf

Correction factor numerical error in generating species abundances at equilibrium.

artpop.only

FALSE

Author(s)

Matthew K. Lau

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

ECGen/ComGenR documentation built on July 23, 2021, 11:44 p.m.