eqsr_plot | R Documentation |
Plot Simulated Predictive Distribution of Recruitment
eqsr_plot(
fit,
n = 20000,
x.mult = 1.1,
y.mult = 1.4,
ggPlot = FALSE,
Scale = 1
)
fit |
an fitted stock recruit model returned from |
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. |
NULL produces a plot
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.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.