Coder Social home page Coder Social logo

cjabradshaw / lesliematrixshiny Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 1.77 MB

This app projects a user-defined Leslie (age-classified) matrix to examine population changes through time.

Home Page: https://cjabradshaw.shinyapps.io/LeslieMatrixShiny/

License: GNU General Public License v3.0

R 100.00%
leslie-matrix population-modelling population-ecology population-biology demographics pulse-disturbance press-disturbance survival fertility population-model matrix-model

lesliematrixshiny's Introduction

LeslieMatrixShiny

transition matrix

Prof Corey J. A. Bradshaw
Global Ecology, Flinders University, Adelaide, Australia
December 2020
e-mail

Preamble

This app projects a user-defined Leslie (age-classified) matrix to examine population changes through time. This fully customisable app includes a density-feedback function on survival relative to desired initial population size and carrying capacity, stochastic projections with user-defined variance for survival, a generationally scaled catastrophe function, a single 'pulse' disturbance function, and a 'press' disturbance function with a user-defined time application.

A detailed instructions tab (tab H) is included for guidance, but a brief sequence description is included below. User- defined settings in each tab are carried over to subsequent tabs.

  1. SET-UP: set matrix dimensions (longevity), age x-specific survival (sx) and fertility (fx) probabilities, offspring sex ratio, % variance around survival/fertility probabilties, and whether lifespan is abrupt or diffuse.
  2. MATRIX PROPERTIES: shows Leslie matrix according to settings in tab A, as well as the dominant eigen value λ instaneous rate of population change r generation length G, and reproduction number R0 (number of female offspring/adult female).
  3. DENSITY FEEDBACK: set initial population size and carrying capacity K, as well as the three coefficients (a, b, c) from a logistic power function to define the relationship between a survival modifier Smod and population size.
  4. PROJECT: deterministic projection of the population, setting the number of years (or generations) to project the population, initial population size, and whether to invoke the density-feedback function set in the previous tab.
  5. STOCHASTIC: stochastic projection of the population based on previous settings (including the % variances set in the first tab); the user can set the number of iterations to repeat the stochastic resampling, the quasi-extinction threshold (population size below which it is considered functionally extinct), and whether to invoke a generationally scaled catatastrophic mortality probability (the magnitude and variance of which can be set by the user).
  6. SINGLE PULSE: a single 'pulse' disturbance, where the user can set the disturbance to be either a proportion of the total population that is removed, or a fixed number of individuals removed, at the time (year) the user wishes to invoke the pulse.
  7. PRESS: a press disturbance, where the user can set the disturbance to be either a proportion of the total population that is removed, or a fixed number of individuals removed, during the interval over which the user wishes to invoke the press.
  8. MVP: calculate the minimum viable population size according to the parameters set in previous tabs.

This Github repository provides all the 'under-the-bonnet' R code for the app.

lesliematrixshiny's People

Contributors

cjabradshaw avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.