plot-mfits: Plot of metrics of multiple fits

plot metrics of multiple fitsR Documentation

Plot of metrics of multiple fits

Description

Method to plot fitting statistics of multiple fits, useful to compare fits.

Usage

## S4 method for signature 'a4aFits,missing'
plot(x, y = missing, ...)

Arguments

x

an a4aFits object with multiple fits

y

ignored

...

additional argument list that might never be used

Value

a plot with fitting statistics

Examples

data(ple4)
data(ple4.index)
qmods <- list(list(~s(age, k=6)))
fmods = list()
for(i in 1:6) {
  fmods[[paste0(i)]] <-
    as.formula(
      paste0("~te(age, year, k = c(6,", i+14,"), bs = 'tp') + s(age, k = 6)")
    )
}
myFits <-
  scax(
    FLStocks(ple4), list(FLIndices(ple4.index)),
    fmodel = fmods, qmodel=qmods, fit="MP"
  )
plot(myFits)

flr/FLa4a documentation built on Dec. 21, 2024, 9:28 p.m.