View source: R/productivity_plot.R
productivity_plot | R Documentation |
This uses the smoothed spawner estimates and smoothed fracwild estimates to compute a
productivity metric. Type 3: wild(t+1)/wild(t)
. Type 1: wild(t+lag)/total(t)
, where wild
is smoothed total estimate times smoothed fracwild estimate and total
is the smoothed total
estimate.
In the Viability Report, type=1
and the lag is set to 3 or 4 (depending on species).
productivity_plot(
esu,
pops,
total.fit,
fracwild.fit,
min.year = NULL,
max.year = NULL,
type = 1,
lag = 4,
nwctrends.options = NULL
)
esu |
The name of the ESU |
pops |
The population names that will be plotted. |
total.fit |
total fit returned by |
fracwild.fit |
fracwild fit returned by |
min.year |
The x axis minimum. First year for numerator. |
max.year |
The x axis maximum. Last year for numerator. |
type |
The type of plot. Type 3: wild(t+1)/wild(t). Type 1: wild(t+lag)/total(t) |
lag |
The number of years prior to use in the denominator, e.g. spawnwers(year-lag). Note not used if type=3. |
nwctrends.options |
A list of plot options to change the appearance (colors, line types, line widths, point types, etc)
in the plots. See |
A plot
Eli Holmes, NOAA, Seattle, USA. eli(dot)holmes(at)noaa(dot)gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.