moth_sim: moth_sim

Description Usage Arguments Value

View source: R/peppered_moths.R

Description

Simulates the evolution of peppered moths in a polluted environment, based on Wilensky, U. (1997). NetLogo Peppered Moths model. http://ccl.northwestern.edu/netlogo/models/PepperedMoths. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

Usage

1
moth_sim(pollution, speed, predation, drift)

Arguments

pollution

Environmental pollution levels, MUST BE BETWEEN 0 and 1.

speed

Rate of environmental (pollution) change, either 'fixed' (no change), 'slow', or 'fast'.

predation

Intensity of predation, MUST BE BETWEEN 0 and 1.

drift

magnitude of drift, must be either 'none', 'small', or 'large'.

Value

Returns a list of moth phenotypes over time, plus pollution levels and input parameter values


erik-ringen/ANTHtools documentation built on Sept. 11, 2019, 12:46 a.m.