covarPlot: covarPlot

View source: R/covarPlot.r

covarPlotR Documentation

covarPlot

Description

For a trap, plot efficiency against an environmental covariate and the covariate against time.

Usage

covarPlot(covar, df, dbCovar, trap, eff.ind.inside, bsplBegDt, fit)

Arguments

covar

A unit-length character specifying the covariate of interest with its associated unit, e.g., turbidity_ntu.

df

A data frame containing at least numerator and denominator efficiency information, i.e., variables nCaught and nReleased.

dbCovar

A data frame containing queried data from a CAMP database for one environmental covariate.

trap

A unit-length numeric corresponding to a trapPositionID.

eff.ind.inside

A logical vector identifying which visit dates correspond to dates within a fishing period, as defined by when efficiency trials took place.

bsplBegDt

The first date, via the spline-1959-1960 paradigm, to which all efficiency years and dates collapse.

fit

An enhanced-efficiency model fit object resulting from function glm.

Details

The function is intended to be called as part of a larger script. As such, the function itself doesn't include any png statements or dev.off() of the same.

Value

Plots to screen, as described in the description.

Author(s)

WEST Inc.

See Also

estCovar

Examples

## Not run: 
covarPlot("turbidity_ntu",obs.eff.df,dbTurb,57004,eff.ind.inside)

## End(Not run)

tmcd82070/CAMP_RST documentation built on April 6, 2022, 12:07 a.m.