plot.STOMdiet: Plot diet data.

View source: R/population_stom.R

plot.STOMdietR Documentation

Plot diet data.

Description

Plot diet data.

Usage

## S3 method for class 'STOMdiet'
plot(
  d,
  show_plot = TRUE,
  cut_pred_size = c(1, 10),
  addTitle = FALSE,
  tAngle = 90,
  addNstom = FALSE,
  nstomAngle = 45,
  Ncol = 2,
  Nrow = NULL,
  Strip.position = c("top", "bottom", "left", "right"),
  Colours,
  otherCol = "grey",
  refac_prey = FALSE
)

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.

addNstom

Show number of stomachs sampled

nstomAngle

Angle number of stomachs text

Ncol

number of columns in facet plot

Nrow

number of rows in facet plot

Strip.position

strip.position: "top" | "bottom" | "left" | "right"

Colours

vector of colours for preys.

otherCol

Colour for "other prey"

refac_prey

Reorder preys

Value

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


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