plot.spmdat: plot.spmdat S3 method that plots an spmdat data set

View source: R/spm.r

plot.spmdatR Documentation

plot.spmdat S3 method that plots an spmdat data set

Description

plot.spmdat is an S3 method that plots an spmdat data set. It plots the catch and CPUE against time

Usage

## S3 method for class 'spmdat'
plot(x, ...)

Arguments

x

a data set that should contain 'year', 'catch', and 'cpue'

...

other arguments

Value

nothing, but it does generate a new plot

Examples

## Not run: 
yrs <- 2000:2010
catches <- rnorm(length(yrs),mean=150,sd=5)
ce <- rnorm(length(yrs),mean=20,sd=1)
makemat <- cbind(year=yrs,catch=catches,cpue=ce)
dat <- makespmdata(makemat)
plot(dat)

## End(Not run)

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