Skip to contents

Launches a small Shiny gadget with sliders in the left sidebar for each numeric element of pars and a live-updating plot of plotAgeLikelihood(pars, age_at_length) in the main panel.

Usage

tune_pars(pars, age_at_length)

Arguments

pars

A named list of scalar numeric parameters. Typical entries are k, L_inf, d, m, spawning_mu, spawning_kappa, annuli_date, and annuli_min_age.

age_at_length

A data frame of observed age-at-length data as used by plotAgeLikelihood() (see Cod_CS_age_at_length).

Value

Invisibly returns the final parameters after the gadget is closed. While the gadget is running it displays the plot interactively.

Examples

# Not run: requires interactive session
# data("Cod_CS_age_at_length")
# data("Cod_CS_pars")
# tune_pars(Cod_CS_pars, Cod_CS_age_at_length)