Skip to content

Repository for the AMPLE harvest control rule R-Shiny apps

License

Notifications You must be signed in to change notification settings

PacificCommunity/ofp-sam-ample

Repository files navigation

AMPLE

AMPLE provides three Shiny apps to explore how Harvest Control Rules (HCRs) work and how performance indicators can be used to select between them.

The three apps are:

  • Introduction to HCRs provides a simple overview to how HCRs work. Users are able to select their own HCR and step through its performance, year by year. Biological variability and estimation error are introduced.
  • Measuring performance builds on the previous app and introduces the idea of using performance indicators to evaluate HCR performance.
  • Comparing performance allows multiple HCRs to be created and tested, and their performance compared so that the preferred HCR can be selected.

Installation

You can install the released version of AMPLE from CRAN with:

install.packages("AMPLE")

Alternatively, you can get the latest version from the GitHub repository here by installing it with the devtools package.

devtools::install_github("PacificCommunity/ofp-sam-ample")

Usage

Load the library as usual:

library(AMPLE)

The apps can be launched by calling the appropriate function:

intro_hcr()
measuring_performance()
comparing_performance()

The apps are also hosted online at:

Vignettes

There are three vignettes that walk users through the app. These can be used in workshops etc to help learning.

You can access them from R using:

vignette("intro_hcr", package="AMPLE")
vignette("measuring_performance", package="AMPLE")
vignette("comparing_performance", package="AMPLE")

The vignettes are also accessible through the Shiny apps, under the ‘Information’ tab.