View source: R/compareData.FleetTimeSeriesABs.R
compareData.FleetTimeSeriesABs | R Documentation |
Function to compare abundance or biomass time series data by fleet among several model scenarios.
compareData.FleetTimeSeriesABs(
objs = NULL,
fleet.type = c("survey", "fishery"),
catch.type = c("index", "retained", "discard", "total"),
data.type = c("abundance", "biomass"),
fleets = "all",
sexs = "all",
maturity_states = "all",
shell_conditions = "all",
position = ggplot2::position_dodge(0.2),
ci = 0.8,
numRecent = 15,
ylims = NULL,
facets = "fleet~x",
scales = "free_y",
verbose = FALSE
)
objs |
|
fleet.type |
|
catch.type |
|
data.type |
|
fleets |
|
sexs |
|
maturity_states |
|
shell_conditions |
|
position |
|
ci |
|
numRecent |
|
ylims |
|
facets |
|
scales |
|
verbose |
|
Uses extractMDFR.Data.FleetTimeSeriesABs()
to extract the data (if objs is not a dataframe).
Uses plotMDFR.Fits.TimeSeries()
to make the plots, with plotObs=TRUE
and plotMod=FALSE
. Only time series with
at least one non-zero value will be plotted (to eliminate lots of values along y=0).
Note that facets
should be given as an expression, not as a character string, if you want multilevel faceting.
Non-nested list of ggplot2 objects, with captions as names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.