plotYield | R Documentation |
After running a projection, the total yield of each species across all
fishing gears can be plotted against time. This plot is pretty easy to do by
hand. It just gets the biomass using the getYield
method and
plots using the ggplot2 package. You can then fiddle about with colours and
linetypes etc. Just look at the source code for details.
Plot the yield using a therMizerSim
object.
plotYield(object, ...)
## S4 method for signature 'therMizerSim'
plotYield(object, print_it = TRUE, ...)
object |
An object of class |
... |
Other arguments to pass to |
print_it |
Display the plot, or just return the ggplot2 object |
A ggplot2 object
getYield
## Not run:
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
sim <- project_therMizer(params, effort=1, t_max=20, t_save = 2)
plotYield(sim)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.