
Plot a weighted length distribution with ggplot2
Source:R/autoplot-methods.R
autoplot.creel_length_distribution.Rdautoplot.creel_length_distribution() renders weighted length-frequency
estimates as a histogram-style bar chart. Ungrouped results are shown as a
single distribution; grouped results are faceted by the grouping variables.
Usage
# S3 method for class 'creel_length_distribution'
autoplot(object, title = NULL, theme = c("default", "creel"), ...)Arguments
- object
A
creel_length_distributionobject returned byest_length_distribution().- title
Optional plot title. Defaults to a title derived from the estimated fish type (
catch,harvest, orrelease).- theme
Character string selecting the plot theme. Use
"default"(default) to preserve the current ggplot styling or"creel"to applytheme_creel()and package-standard colours.- ...
Additional arguments (currently unused).
See also
Other "Visualisation":
autoplot.creel_estimates(),
autoplot.creel_schedule(),
creel_palette(),
plot_design(),
theme_creel()
Examples
if (FALSE) { # \dontrun{
ld <- est_length_distribution(design, by = species, bin_width = 25)
ggplot2::autoplot(ld)
} # }