plotSize: Plot diet data with prey size.

View source: R/population_stom.R

plotSizeR Documentation

Plot diet data with prey size.

Description

Plot diet data with prey size.

Usage

plotSize(
  d,
  show_plot = TRUE,
  cut_pred_size = c(1, 10),
  addTitle = FALSE,
  tAngle = 90,
  Colours,
  otherCol = "grey",
  refac_prey = FALSE,
  byVar = c("year-quarter", "year", "quarter", "none")
)

Arguments

d

Diet data set of class STOMdiet.

show_plot

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

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

vector of colours for preys.

otherCol

Colour for "other prey"

refac_prey

Reorder preys

byVar

Make individual plots by combinations of 'year-quarter','year' or'quarter' or lump all data together ('none').

Value

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


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