Description Usage Arguments Value Author(s) Examples
Constructs a plot of the hypothetical number of individuals in a cohort over time. The initial size of the cohort and the instantaneous mortality rate are controlled by slider bars.
1 | cohortSim(age.max = 15)
|
age.max |
A single numeric that indicates the maximum age to use in the simulations. |
None. An interactive graphic connected to slider controls is produced.
Derek H. Ogle, dogle@northland.edu
1 2 3 4 5 | if (interactive()) {
cohortSim()
} # end if interactive
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.