Produces a frequency histogram of the number of fish in the 'Survivors', 'Spawners', 'Caught', 'Harvested' or 'Released' categories by 'Length', 'Age' or 'Weight' class.
ypr_plot_fish(
population,
x = "Age",
y = "Survivors",
percent = FALSE,
binwidth = 1L,
color = NULL
)
An object of class ypr_population()
.
The object to coerce.
A string of the term on the y-axis.
A flag specifying whether to plot the number of fish as a percent or frequency (the default).
A positive integer of the width of the bins for grouping.
A string of the color around each bar (or NULL).
A ggplot2 object.
Other fish:
ypr_tabulate_fish()
Other plot:
ypr_plot_biomass()
,
ypr_plot_schedule()
,
ypr_plot_sr()
,
ypr_plot_yield()
ypr_plot_fish(ypr_population(), color = "white")