Skip to contents

[Deprecated] An alias provided for backward compatibility with mizer version <= 1.0

Usage

plotM2(object, ...)

Arguments

object

An object of class MizerSim or MizerParams.

...

Other arguments (currently unused)

Value

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

Examples

# \donttest{
params <-  NS_params
sim <- project(params, effort=1, t_max=20, t_save = 2, progress_bar = FALSE)
plotPredMort(sim)

plotPredMort(sim, time_range = 10:20)


# Returning the data frame
fr <- plotPredMort(sim, return_data = TRUE)
str(fr)
#> 'data.frame':	934 obs. of  4 variables:
#>  $ w      : num  0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 0.001 ...
#>  $ value  : num  2.67 1.11 3.87 4.24 3.4 ...
#>  $ Species: chr  "Sprat" "Sandeel" "N.pout" "Herring" ...
#>  $ Legend : chr  "Sprat" "Sandeel" "N.pout" "Herring" ...
# }