cvsh: cvsh plots the catch versus hours

View source: R/candidate_functions.r

cvshR Documentation

cvsh plots the catch versus hours

Description

cvsh plots the catch versus hours, one can obtain the catches and hours from the functions cbb and hbb. A legend is produced if there is a matrix of values and is made up of the column names of the input catchb matrix.

Usage

cvsh(catchb, hoursb, legloc = "topleft")

Arguments

catchb

a vector or matrix of catches by year by block

hoursb

a matching vector or matrix of hours by year by block

legloc

the location of the legend defaults to "topright", could be "topleft", "bottomleft", or "bottomright", usually determined interactively for each instance

Value

nothing, but it does plot a graph

Examples

## Not run: 
   ind=abd2;legloc="topright";sau="block";hours="hours";year="year"
   cbyb <- cbb(ind,sau)
   hbyb <- hbb(ind,sau)
   cvsh(cbyb,hbyb)

## End(Not run)

haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.