View source: R/utils-heatmap-add-extrap-yrs-wa.R
heatmap_add_extrap_yrs_wa | R Documentation |
model$wtatage
Add extrapolated years before and after the weight-at-age time
series data in model$wtatage
heatmap_add_extrap_yrs_wa(
model = NULL,
wa = NULL,
pre_yrs = min(pull(filter(model$wtatage, Yr > 0), Yr)):model$endyr,
pre_func = mean,
post_yrs = min(pull(filter(model$wtatage, Yr > 0), Yr)):model$endyr,
post_func = mean,
pre_wa_vals = NULL,
post_wa_vals = NULL,
...
)
model |
An list of results read in from an SS model using
|
wa |
The weight-at-age data frame found in |
pre_yrs |
A vector of the years to use for the |
pre_func |
The function to use on the data filtered by the years
given by |
post_yrs |
A vector of the years to use for the |
post_func |
The function to use on the data filtered by the years
given by |
pre_wa_vals |
A vector of weight-at-age values to use instead of the
function |
post_wa_vals |
A vector of weight-at-age values to use instead of the
function |
... |
Absorbs arguments meant for other functions |
A data frame containing years (yr
) column and columns for age,
represented as numbers (no text appended to them). The number of age
columns is the same as the number in model$wtatage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.