An interactive Shiny application for exploring deterministic, discrete, density-dependent logistic population growth models.
This app provides two tabs, each implementing a different parameterisation of the discrete logistic growth model:
-
r discrete model — uses the discrete growth factor rd:
Nt+1 = Nt + rd Nt (1 − Nt / K)
-
λ (lambda) discrete model — uses the finite rate of increase λ:
Nt+1 = λ Nt (1 − Nt / K)
A third tab provides background on the models, their assumptions, and references.
- Adjustable sliders for starting population (N), carrying capacity (K), growth rate (r or λ), and time (t).
- Real-time plots of population size over time and rate of population change vs. population size.
- Demonstrates stable equilibria, damping oscillations, limit cycles, and chaotic dynamics depending on the growth rate.
- Plot lines turn red when growth-rate parameters enter the chaotic regime.
Before launching the app for the first time (or after editing any .qmd file), render the HTML includes:
# From the project directory
for f in *.qmd; do quarto pandoc "$f" -o "${f%.qmd}.html" --mathjax --from markdown; done# From the project directory
shiny::runApp()Or open app.R in RStudio and click Run App.
- Gillman, M. (2005). Population Dynamics: Introduction. Encyclopedia of Life Sciences.
- Gillman, M. (2009). An Introduction to Mathematical Models in Ecology and Evolution: Time and Space. Wiley-Blackwell.
- Gotelli, N. J. (2001). A Primer of Ecology (3rd ed.). Sinauer Associates.