plotResourcePred: Plot functions regarding the resources. Compatible with non...

View source: R/plotResource.R

plotResourcePredR Documentation

Plot functions regarding the resources. Compatible with non mizerMR objects Plot the mortality applied on the resource spectrum(s)

Description

Plot functions regarding the resources. Compatible with non mizerMR objects Plot the mortality applied on the resource spectrum(s)

Usage

plotResourcePred(object, proportion = TRUE, return_data = FALSE)

plotlyResourcePred(object, proportion = TRUE, ...)

Arguments

object

An object of class MizerSim or MizerParams.

proportion

A boolean value that determines whether values should be displayed as proportions from 0 to 1 or with their actual values. Default is TRUE.

return_data

A boolean value that determines whether the formatted data used for the plot is returned instead of the plot itself. Default value is FALSE

...

Other arguments (currently unused)

Value

A ggplot2 object, unless return_data = TRUE, in which case a data frame with the four variables 'w', 'value', 'Predator', 'Resource' is returned.

See Also

plotting_functions

Other plotting functions: animateSpectra(), plotDiet(), plotResourceLevel(), plotSpectra()

Examples


plotResourcePred(NS_params)

# Returning the data frame
fr <- plotResourcePred(NS_params, return_data = TRUE)
str(fr)


sizespectrum/mizerMR documentation built on July 21, 2023, 1:01 p.m.