Description Usage Arguments Value
View source: R/peppered_moths.R
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.
1 | moth_sim(pollution, speed, predation, drift)
|
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'. |
Returns a list of moth phenotypes over time, plus pollution levels and input parameter values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.