Skip to contents

Converts an MR diet array to the data frame expected by plotDataFrame(), or returns that data frame directly.

Usage

plotDietData(params, diet, species = NULL, return_data = FALSE)

Arguments

params

A mizerMR object.

diet

A diet array as returned by getDiet().

species

Optional predator species selection.

return_data

Whether to return the plotting data instead of a plot.

Value

A ggplot2 object or, if return_data = TRUE, a data frame.