plot.spmdat | R Documentation |
plot.spmdat is an S3 method that plots an spmdat data set. It plots the catch and CPUE against time
## S3 method for class 'spmdat'
plot(x, ...)
x |
a data set that should contain 'year', 'catch', and 'cpue' |
... |
other arguments |
nothing, but it does generate a new plot
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.