plotfishM: plotfishM plots the catch and optionally the cpue
Description
plotfishM uses a matrix of fishery data. It requires
the matrix or data.frame to contain the columns 'year',
'catch', and optionally 'cpue'.
Usage
plotfishM(
fish,
spsname = "",
ce = TRUE,
title = TRUE,
fnt = 7,
both = TRUE,
maxy = c(0, 0),
year = "year",
catch = "catch",
cpue = "cpue"
)
Arguments
fish
the matrix or data.frame containing year, catch, and cpue.
spsname
the name of the species concerned
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.
both
plot both the catches and the CPUE
maxy
a vector of two zeros. These define the maximum y-axis value
for each plot. If it remains zero then getmax will be used to find
the maximum.
year
the name of the column containing the years, default="year"
catch
the name of the column containing catches, default="catch"
cpue
the name of the column containing cpue, default="cpue"