plotfish: plotfish plots the catch and optionally the cpue from fish

View source: R/datalow_utils.r

plotfishR Documentation

plotfish plots the catch and optionally the cpue from fish

Description

plotfish uses the matrix of fishery data used in the datalowSA standard data format. It requires the matrix or data.frame to contain the columns 'year', 'catch', and optionally 'cpue'.

Usage

plotfish(
  fish,
  glb,
  ce = TRUE,
  title = TRUE,
  fnt = 7,
  filename = "",
  resol = 200
)

Arguments

fish

the matrix or data.frame containing year, catch, and cpue.

glb

the list of biologicals potentially containing the spsname

ce

a logical parameter determining whether to plot the cpue or not. the default = TRUE

title

determines whether or not the spsname is printed at the top of the plot. Default = TRUE but for a more formal publication it might need to be set to FALSE, which also reallocates the room given to the title to the plot.

fnt

the font used in the plot and axes.

filename

default is empty. If a filename is put here a .png file with that name will be put into the working directory.

resol

the resolution of the png file, defaults to 200 dpi

Value

prints the location of the png file produced to the console

Examples

## Not run: 
  data(dataspm)
  plotfish(dataspm$fish,glb,ce=TRUE,filename="")

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.