Method to plot fitted versus observed indices-at-age. Note the yaxis doesn't has a scale. The visual is about the difference between the two lines, not about the value of each line, which in any case would be very difficult to assess visually.

# S4 method for class 'a4aFit,FLIndices'
plot(x, y, ...)

Arguments

x

an a4aFit object with the fitted values

y

an FLIndices object with the observed values

...

additional argument list that might never be used

Value

a plot with fitted and observed indices-at-age

Examples

data(ple4)
data(ple4.index)
obj <- sca(ple4, FLIndices(ple4.index))
#> Warning: *** ~te(age, year, k = c(6, 30), bs = "tp") + s(age, k = 6) has 4 too many parameter(s)!!
#>     i will remove the redundant ones:
#> 	s(age).2
#> 	s(age).3
#> 	s(age).4
#> 	s(age).5
plot(obj, FLIndices(ple4.index))