Learn R Programming

atlantistools (version 0.4.3)

plot_species: Create species specific overview plot.

Description

This plotting routine is based on Raphael's (Ifremer) plotting routine used during model calibration. Currently 6 plots are created by default: - Biomass over time - Biomass over time per age - StructN over time per age - ResN over time per age - Condition over time per age - Numbers over time per age

Usage

plot_species(data_pre, species)

Arguments

data_pre

List of preprocessed Atlantis simulation. The list of dataframes should be created with model-preprocess.Rmd.

species

Character srtring giving the name of the species to plot. Only age based species are supported.

Value

ggplot2 object of class grob

See Also

Other plot functions: plot_bar, plot_boxes, plot_diet_bec_dev, plot_diet, plot_line, plot_rec

Examples

Run this code
# NOT RUN {
plot <- plot_species(preprocess, species = "Shallow piscivorous fish")
# Use grid.arrange to draw the plot on the current device
gridExtra::grid.arrange(plot)
# }

Run the code above in your browser using DataLab