plotResourcePred | R Documentation |
Plot the mortality applied on the resource spectrum(s)
plotResourcePred(object, proportion = TRUE, return_data = FALSE)
plotlyResourcePred(object, proportion = TRUE, ...)
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) |
A ggplot2 object, unless return_data = TRUE
, in which case a data
frame with the four variables 'w', 'value', 'Predator', 'Resource' is
returned.
plotting_functions
Other plotting functions:
plotDeath()
,
plotEnergyBudget()
,
plotResourceLevel()
,
plotYieldVsF()
,
plotYieldVsSize()
plotResourcePred(NS_params)
# Returning the data frame
fr <- plotResourcePred(NS_params, return_data = TRUE)
str(fr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.