eqsr_plot: Plot Simulated Predictive Distribution of Recruitment

eqsr_plotR Documentation

Plot Simulated Predictive Distribution of Recruitment

Description

Plot Simulated Predictive Distribution of Recruitment

Usage

eqsr_plot(
  fit,
  n = 20000,
  x.mult = 1.1,
  y.mult = 1.4,
  ggPlot = FALSE,
  Scale = 1
)

Arguments

fit

an fitted stock recruit model returned from eqsr_fit

n

Number of random recruitment draws to plot

x.mult

max value for the y axis (ssb) as a multiplier of maximum observed ssb

y.mult

max value for the x axis (rec) as a multiplier of maismum observed rec

ggPlot

Flag, if FALSE (default) plot using base graphics, if TRUE do a ggplot

Scale

Numeric value for scaling varibles in plot.

Value

NULL produces a plot

See Also

eqsr_fit Fits several stock recruitment models to a data set and calculates the proportion contribution of each model based on a bootstrap model averaging procedure.

Examples


## Not run: 
data(icesStocks)
FIT <- eqsr_fit(icesStocks$saiNS,
                nsamp = 1000,
                models = c("Ricker", "Segreg"))

eqsr_plot(FIT, n = 20000)

# Scale argument only available for ggPlot = TRUE
eqsr_plot(FIT, n = 20000, ggPlot = TRUE, Scale = 1000)

## End(Not run)


ices-tools-prod/msy documentation built on Nov. 3, 2022, 6:41 p.m.