plot.gadget.fit.Rd
Plot Gadget fit
# S3 method for gadget.fit
plot(x, ...)
results from gadget fit
Can include
The type of plot that is returned, depends on the input data (see details)
What results should be plotted, default sidat
ggplot2::ggplot object
Plot the results from gadget.fit. The function produces a different plots by datatype and plottype. Valid datatypes are:
Surveyindices
Likelihood summary data
Catchdistribution data
Stockdistribution data
Results by year
Age composition from the model
Suitability estimated from the model by year and step
Parameter values relative to their boundaries
and valid plottypes are:
Default value, plots direct comparisons of data with model output. Valid for all datatype except 'res.by.year'
Only for 'summary'. Plots the weighted likelihood value for each component.
Only for 'summary'. Plots the likelihood composition as a pie chart
Only for 'sidat'. Plot the surveyindex based on the SI length group instead of component name.
Only for 'sidat'. Plot the biomass weighted survey index, assumes length based abundance index.
Only for 'sidat'. Produces a x-y scatter-plot for the fitted and observed index.
Only for 'catchdist.fleets'. Produces a residual plot for each component.
Only for 'catchdist.fleets'. Produces a bubble plot for each component.
Only for 'catchdist.fleets'. Produces a plot of fitted growth for each age-length component.
Only for 'catchdist.fleets'. Produces a residual plot for each component.
Only for 'res.by.year'. Produces a F plot by stock.
Only for 'res.by.year'. Produces a total biomass plot by stock.
Only for 'res.by.year'. Produces a total catch plot by stock.
Only for 'res.by.year'. Produces a recruitment biomass plot by stock.
if (FALSE) {
## collect the data from gadget
fit <- gadget.fit()
## plot survey indices
plot(fit)
## plot likelihood
plot(fit,data='summary')
}