plot_ab: Plot Alpha and Beta

Description Usage Arguments Details Value

View source: R/plot_ab.R

Description

Plots a species image and the parameter in a provided data.table

Usage

1
plot_ab(X, t_spp, plt_img = TRUE, plt_pts = TRUE, ...)

Arguments

X

a data.table with columns for year and value

t_spp

character indicating a species name

plt_img

logical indicating whether or not to plot a picture of the species in the background

plt_pts

logical indicating whether or not to plot the posterior points, or just the mean of the posterior

...

arguments passed to both sppImg and plot

Details

Used in process_msom_figures.R. X is assumed to have been subset to the specific species and the desired annual posterior for value, such as when value is a species-specific paraemter for alpha or beta.

The function tries to adjust the opacity of the points according to the size of the panel, with the intention of not completely obscuring the background image and so that opacity can be used as an indicator of posterior density. However, if the panel is too small, the transparency may be truncated to 0, so the posterior dots are just invisible.

Value

the output of sppImg, or if plt_img is FALSE, returns NULL


rBatt/trawlDiversity documentation built on Aug. 14, 2021, 1:01 p.m.