View source: R/datalow_utils.r
plotfish | R Documentation |
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'.
plotfish(
fish,
glb,
ce = TRUE,
title = TRUE,
fnt = 7,
filename = "",
resol = 200
)
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 |
prints the location of the png file produced to the console
## Not run:
data(dataspm)
plotfish(dataspm$fish,glb,ce=TRUE,filename="")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.