Description Usage Arguments See Also
Plots a probability mass function representing the predicted probability of catching a given number of fish in total over all runs. The plot is coloured to indicate the mean EQR achieved if each number was observed in terms of the WFD classification this would indicate.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | plotCatchPMF(
fit,
newData,
subset = 1,
na.action,
boundaries,
mu,
rho,
xmax,
xmaxscale = 2,
maxpts = 200,
title,
...
)
|
fit |
an |
newData |
a data frame with surveys as rows and variables as columns.
It should contain all variables required by |
subset |
an vector specifying which surveys to plot the predicted PMF for. |
na.action |
a function which indicates what should happen when the data
contain missing values ( |
boundaries |
a vector of length 4 giving the EQR boundaries
separating the classes Bad, Poor, Good, Moderate
and High. These are used only to colour the plot with Bad red
and High blue. If missing, regularly spaced boundaries of
|
mu |
a matrix of posterior samples of the abundance component
mu can optionally be given to save recalculation if already
available. This is assumed to have been calculated from
|
rho |
a matrix of posterior samples of the prevalence component
rho can optionally be given to save recalculation if already
available. This is assumed to have been calculated from
|
xmax |
an optional x-axis upper limit giving the largest value of the total catch to plot the probability of. |
xmaxscale |
if |
maxpts |
the maximum number of points to plot on the x-axis. If
|
title |
an optional character vector giving the title for each plot.
Should have one entry per survey selected by |
... |
further arguments passed to |
fcs2FitModel
for fitting the model.
pCatch
for obtaining the probabilities plotted by this
function.
fcs2InteractivePrediction
can be used to interactively view
how the predicted catch distribution changes with covariates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.