View source: R/plot_wham_output.R
plot_wham_output | R Documentation |
Generates many output plots and tables for a fit WHAM model.
plot_wham_output(
mod,
dir.main = getwd(),
out.type = "html",
res = 72,
plot.opts = NULL
)
mod |
output from |
dir.main |
character, directory to save plots to (default = |
out.type |
character, either |
res |
resolution to save .png files (dpi) |
plot.opts |
(optional) list of plot modifications |
out.type = 'html'
(default) makes a html file for viewing plot .png files and html tables of parameter estimates in a browser.
out.type = 'pdf'
makes one pdf file of all plots and tables.
out.type = 'png'
creates a subdirectory 'plots_png“ in dir.main
and saves .png files within.
out.type = 'pdf' or 'png'
makes LaTeX and pdf files of tables of parameter estimates.
(tabs: 'input data', 'diagnostics', 'results', 'ref_points', 'retro', and 'misc').
plot.opts
holds optional arguments to modify plots:
$ages.lab
Character vector, will change age labels in plots (default is 1:n.ages
).
$font.family
Font family, e.g. "Times"
.
$browse
T/F whether to open the html file in a browser. Default = T.
Plot functions are located in wham_plots_tables.R
Table function is located in par_tables_fn.R
fit_wham
, wham_html
, wham_plots_tables
## Not run:
data("input4_SNEMAYT") # load fit wham model
mod <- fit_wham(input4_SNEMAYT)
plot_wham_output(mod)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.