Comp.plots | R Documentation |
The function Comp.plots
generates bubble plots of residuals of age-
and length-composition fits for the entire time frame of the assessment.
Bubble areas are scaled to the largest residual within each plot. Optionally,
a small inset plot displays the correlation or angular
deviation between observed and predicted values each year. In addition,
Comp.plots
generates plots of predicted and observed mean compositions
pooled across years and weighted by sample size.
Comp.plots(
x,
DataName = deparse(substitute(x)),
draft = TRUE,
graphics.type = NULL,
use.color = TRUE,
units = x$info$units.length,
resid.type = "OSA",
corr = TRUE,
c.min = 0.25,
max.bub = 1.5,
b.plot = FALSE,
resid.plots = FALSE,
Nyrs = FALSE
)
x |
an R list with output from the assessment models. |
DataName |
string used in plot titles. Defaults to argument |
draft |
modifies plots for use in a report. When |
graphics.type |
a vector of graphics file types to which graphics are saved.
When |
use.color |
plots are made in grayscale when |
units |
a character string (e.g. |
resid.type |
type of residuals to plot for in each of the diagnostics, options are "OSA","standard","pearson", and "all". Input can be a single value or vector of values |
corr |
when |
c.min |
lower bound on the y-axis range of the inset plot, applies only when corr is |
max.bub |
cex value for maximum bubble size, default is 1.5. |
b.plot |
create boxplots of composition residusls, default is FALSE. |
resid.plots |
create qqplot and scatterplot of residuals, default is FALSE. |
Nyrs |
boolean for whether the number of pooled years is to be added to legend. Default is |
Graphics
M Prager
E Williams
K Shertzer
R Cheshire
K Purcell
Comp.plots(gag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.