inst/doc/hake-vignette.R

## ---- echo = FALSE-------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

## ------------------------------------------------------------------------
	library(catchMSY)
	data(NamibianHake)
	names(hake)
	head(hake$data)

## ------------------------------------------------------------------------
	hake <- runModel(hake)
	str(hake)

## ---- echo=FALSE, results='asis'-----------------------------------------
library(catchMSY)
data(NamibianHake)
knitr::kable(head(hake$data, 10))

## ------------------------------------------------------------------------
library(catchMSY)
library(ggplot2)


# load the hake sID object
data(NamibianHake)

# run the age structured model.
hake <- runModel(hake)

# plot the biomass
qplot(hake$year,hake$bt,geom="line")
smartell/CatchMSY documentation built on May 30, 2019, 3:07 a.m.