diagnosticPlot: diagnosticPlot produces diagnostic plots of the regression.

Description Usage Arguments Value Examples

View source: R/cpueplots.R

Description

diagnosticPlot produces diagnostic plots of the regression. these include a plot of the residuals agsinst the predicted values, the normal Q-Q plot, a histogram of the Observed Log(CPUE) with a fitted normal distribution, and a histogram of the predicted Log(CPUE) with a fitted normal distribution and the normal distribution from the observed data.

Usage

1
diagnosticPlot(inout, inmodel, indat, inlabel = "", height = 6, width = 8)

Arguments

inout

is the list from standLM.

inmodel

is a single number identifying the model inside 'inout' to plotted.

indat

is the data.frame used in the standardization.

inlabel

provides the means of giving a title to the 2 x 2 plot

height

default = 6; the height of the output plot

width

default = 8; the width of the output plot

Value

a 2 x 2 plot of the residuals, the Q-Q plot, and the distributions of the logged observed and predicted values of CPUE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
data(sps)
splabel = "Species"
sps$Year <- factor(sps$Year)
sps$Month <- factor(sps$Month)
sps$Vessel <- factor(sps$Vessel)
labelM <- c("Year","Vessel","Month")
mods <- makemodels(labelM)
out <- standLM(mods,sps,splabel)
diagnosticPlot(out,3,sps,splabel)

## End(Not run)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.