plotDeath | R Documentation |
Plot the sources of external, predation and fishing mortality per species and size
plotDeath(
object,
species = NULL,
proportion = TRUE,
return_data = FALSE,
xtrans = c("log10", "identity")
)
plotlyDeath(object, species = NULL, proportion = TRUE, ...)
object |
An object of class MizerSim or MizerParams. |
species |
The name of the predator species for which to plot the mortality. |
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', 'Cause', 'Species' is returned.
plotting_functions
Other plotting functions:
plotEnergyBudget()
,
plotResourceLevel()
,
plotResourcePred()
,
plotYieldVsF()
,
plotYieldVsSize()
plotDeath(NS_params, species = "Cod")
# Returning the data frame
fr <- plotDeath(NS_params, species = "Cod", return_data = TRUE)
str(fr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.