plotmat: plotmat plots a matrix of data

View source: R/cpueplots.R

plotmatR Documentation

plotmat plots a matrix of data

Description

plotmat is a utility function that is used to plot up matrices calculated by cbb, hbb, geobb, and others. It expects a matrix of values and the variable against which it is to be plotted as the rownames of the matrix. Not exported but is used by rforcpue. A legend is only produced if there is a matrix of values and is made up of the column names of the input catchb matrix.

Usage

plotmat(inm, xlab = "years", ylab = "", legloc = "topright")

Arguments

inm

a matrix of values whose rownames constitute the x-axis

xlab

the xlabel, defaults to ""

ylab

the ylabel, defaults to ""

legloc

the location of the legend defaults to "topright", could be "topleft", "bottomleft", or "bottomright"

Value

nothing, but it does plot a graph

Examples

## Not run: 
 ind=abd2;legloc="topright";block="block";catch="catch";year="year"


## End(Not run)

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