Learn R Programming

MQMF (version 0.1.1)

plotspmdat: plotspmdat plots the fish data containing catches and cpue

Description

plotspmdat plots a fish data set. It plots the catch and CPUE against time

Usage

plotspmdat(x, ...)

Arguments

x

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

...

extra parameters potentially used by plotspmdat

Value

nothing, but it does generate a new plot

Examples

Run this code
# NOT RUN {
yrs <- 2000:2010
catches <- rnorm(length(yrs),mean=150,sd=5)
ce <- rnorm(length(yrs),mean=20,sd=1)
fish <- as.data.frame(cbind(year=yrs,catch=catches,cpue=ce))
plotspmdat(fish) 
# }

Run the code above in your browser using DataLab