plot_binned_fitted: Add horizontal bars and shaded rectangles to 'LBN_bin_plot()'

View source: R/plotting.R

plot_binned_fittedR Documentation

Add horizontal bars and shaded rectangles to LBN_bin_plot()

Description

These are to show the estimated normalised biomasses in each bin, based on the MLE value of b and it's confidence limit values. Each horizontal bar spans a bin (default colour is red), with it's vertical value indicating the expected normalised biomass based on the MLE of b. The height of the shaded rectangles (default colour pink) show the range of expected normalised biomass based on the 95\

Usage

plot_binned_fitted(
  binTibble,
  bar.col = "red",
  bar.lwd = 3,
  rect.shading = "pink",
  shorter = 0.05
)

Arguments

binTibble

tibble of values calculated in LBN_bin_plot(); this function adds to that plot

bar.col

colour for the horizontal bars representing the MLE values of normalised biomass in each bin

bar.lwd

thickness of horiztonal bars

rect.shading

colour for shading of rectangles corresponding to the normalised biomasses estimated from confidence intervals of b

shorter

fraction shorter to make the rectangles, so can see them overlapping with grey rectangles; may not work exacly as planned (won't be symmetric) when x-axis not logged, but that's not going to be a useful plot anyway

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.