cohortSim {FSATeach}R Documentation

Dynamics plots to explore numbers in a cohort over time.

Description

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.

Usage

  cohortSim(age.max = 15)

Arguments

age.max

A single numeric indicating the maximum age to use in the simulations.

Value

None. An interactive graphic connected to slider controls is produced.

Examples

if (interactive()) {

cohortSim()

} # end if interactive

[Package FSATeach version 0.0.1 Index]