Learn R Programming

ypr (version 0.4.0)

ypr_plot_biomass: Plot Biomass

Description

Produces a frequency histogram of the total fish 'Biomass' or 'Eggs' deposition by 'Age' class.

Usage

ypr_plot_biomass(population, y = "Biomass", color = NULL)

Arguments

population

An object of class ypr_population().

y

A string of the term on the y-axis.

color

A string of the color around each bar (or NULL).

Value

A ggplot2 object.

See Also

ypr_population() and ggplot2::geom_histogram()

Examples

Run this code
# NOT RUN {
ypr_plot_biomass(ypr_population(), color = "white")
# }

Run the code above in your browser using DataLab