R/diet.R
plotDietData.Rd
Converts an MR diet array to the data frame expected by plotDataFrame(), or returns that data frame directly.
plotDataFrame()
plotDietData(params, diet, species = NULL, return_data = FALSE)
A mizerMR object.
A diet array as returned by getDiet().
getDiet()
Optional predator species selection.
Whether to return the plotting data instead of a plot.
A ggplot2 object or, if return_data = TRUE, a data frame.
return_data = TRUE