plot_age_precision: Plot ageing precision data

View source: R/ageing-precision.R

plot_age_precisionR Documentation

Plot ageing precision data

Description

Plot ageing precision data

Usage

plot_age_precision(dat, n = 250, jitter = 0.25, seed = 42)

Arguments

dat

A data frame from tidy_age_precision().

n

Number of fish to randomly sample to plot.

jitter

Amount to randomly jitter ages for visualization. Same jitter values are used for the precision and primary ages for the same fish.

seed

If a numeric value, set the random seed so that the same rows are sampled each time and the same jitter values are generated. If NULL, different fish will be sampled each time the function is run.

Examples

## Not run: 
gfdata::get_ageing_precision("shortraker rockfish") %>%
  tidy_ageing_precision() %>%
  plot_ageing_precision()

gfdata::get_ageing_precision("pacific ocean perch") %>%
  tidy_ageing_precision() %>%
  plot_ageing_precision(n = 200)

## End(Not run)

seananderson/gfplot documentation built on April 5, 2024, 6:29 a.m.