plot.fcs2Fit: Plot FCS2 Model Fit

Description Usage Arguments Details See Also

View source: R/plot.fcs2Fit.R

Description

Produces density plots of the prior and posterior estimates of each variable in the FCS2 model. Can also produce series plots that display the relationship between each covariate and the corresponding abundance or prevalence component.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'fcs2Fit'
plot(
  x,
  variables = variable.names(x),
  prior = TRUE,
  posterior = !is.null(x$bugsFit),
  inla = !posterior,
  legend = TRUE,
  samples = FALSE,
  groupLinearVars = posterior,
  ...
)

Arguments

x

an "fcs2Fit" object, as returned from fcs2FitModel.

variables

an optional character vector giving the names of the model variables to plot. fcs2:::variable.names.fcs2Fit can be used for this.

prior

whether to plot the prior distribution. These are only available for plots of the density of a single variable.

posterior

whether to plot the posterior distribution, as estimated from BUGS samples (if available).

inla

whether to plot the approximate posterior estimates produced by INLA (if available).

legend

whether to add a legend to each plot.

samples

whether to display the individual posterior samples rather than summarising each posterior term.

groupLinearVars

whether to group multiple linear terms of the same covariate together to display the overall covariate relationship rather than each density estimate. This is not available for the prior and INLA only produces a mean estimate of the relationship based on the false assumption of independence between the linear parameters. Therefore the INLA relationship line should only be used as a rough guide when multiple terms exist.

...

Not used in this function

Details

Plot FCS2 Model Fit

See Also

fcs2FitModel


aquaMetrics/fcs2 documentation built on Aug. 21, 2021, 12:55 p.m.