plotboots: Plot bootstrapping diet data.

View source: R/bootstrapping.R

plotbootsR Documentation

Plot bootstrapping diet data.

Description

Plot bootstrapping diet data.

Usage

plotboots(
  b,
  show_plot = TRUE,
  freq = TRUE,
  cut_pred_size = c(1, 10),
  addTitle = FALSE,
  tAngle = 90,
  Colours = c("#C10534", "green", "blue", "pink", "skyblue"),
  ltys = c("dotted", "dotdash", "longdash"),
  maxbins = 75,
  statistics,
  inclData,
  add_mean_diri = TRUE,
  add_mean_boots = FALSE,
  add_no_boots = FALSE
)

Arguments

b

List of Bootstrap diet data of class STOMdiet.

show_plot

Show the resulting graphs on screen (or save the results for later processing)

freq

Logical, show frequency (or density).

cut_pred_size

From to in substring of predator size

addTitle

Add predator name on top of the plot.

tAngle

Angle X-axis text.

Colours

Colours for frequency.

maxbins

maximum number of bins in plot.

statistics

Data set (estimated by call to bootsMean) including statistics to be shown on the plot.

inclData

Date set with combinations of stratum_time, pred_name and pred_size to be included in the plot.

add_mean_diri

logical, plot diet proportions estimated from Dirichlet parameters (Colours3).

add_mean_boots

logcal, plot diet proportions estimated from the mean of bootstrapping replicates (Colours4).

add_no_boots

logical, plot diet proportions without bootstrapping. (Colours5).

Value

nothing (if show_plot=TRUE) or a list of plots.


MortenVinther/FishStomachs documentation built on Feb. 14, 2025, 7:33 a.m.