run.plant.ecosystem: Makes a matrix of character values with different plant...

Description Usage Arguments Value Examples

View source: R/Plants.R

Description

A wrapper around run.plant.ecosystem

Usage

1
2
3
4
run.plant.ecosystem(terrain, timesteps = 50, seed.fracs = c(0.1, 0.1, 0.1,
  0.1), repro = c(0.4, 0.6), survive = c(0.6, 0.4),
  comp.mat = matrix(c(0.75, 0.25, 0.25, 0.75), nrow = 2, ncol = 2),
  names = NULL)

Arguments

terrain

an elevational grid generated from make.terrain on which plant.matrix will be placed

timesteps

number of times to loop the plant population to simulate time (default = 50). The third value in the plant.matrix array

seed.fracs

random values to start off the first plant.matrix

repro

a vector of probability values (0-1) equal to the length of the number of species

survive

a vector of probability values (0-1) equal to the length of the number of species

comp.mat

a matrix that has dimensions the same length as the number of species. Contains the probabilities of each species

names

assigns names to the species (default "a" and "b")

Value

plants

Examples

1
2
plant.pop <- run.plant.ecosystem(terrain, timesteps=50, seed.fracs=c(0.1, 0.1, 0.1, 0.1),
repro=c(0.75,0.25), survive=c(0.25, .75), comp.mat=matrix(c(0.75,0.25,0.25,0.75), 2))

mayapendleton/RWorld1 documentation built on May 29, 2019, 4:41 a.m.