ypr_plot_fish: Plot Fish

Description Usage Arguments Value See Also Examples

View source: R/plot.R

Description

Produces a frequency histogram of the number of fish in the 'Surviving', 'Spawning', 'Caught', 'Harvested' or 'Released' categories by 'Length', 'Age' or 'Weight' class.

Usage

1
2
ypr_plot_fish(population, x = "Age", y = "Surviving", binwidth = 1L,
  color = NULL)

Arguments

population

An object of class ypr_population.

x

A string of the term on the x-axis.

y

A string of the term on the y-axis.

binwidth

A positive integer of the width of the bins for grouping.

color

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

Value

A ggplot2 object.

See Also

ypr_population and geom_histogram

Examples

1
ypr_plot_fish(ypr_population(), color = "white")

poissonconsulting/ypr documentation built on May 16, 2019, 11:12 p.m.