plot_acc_prior: Plot prior accumulation rate

View source: R/utils-plot.R

plot_acc_priorR Documentation

Plot prior accumulation rate

Description

Plot prior accumulation rate

Usage

plot_acc_prior(
  acc.mean = 20,
  acc.shape = 1.5,
  xlim = c(0, 3 * max(acc.mean)),
  standalone = TRUE,
  xlab = "Acc. rate [yr/cm]",
  ylab = NULL,
  title = NULL,
  col = "#00CC00",
  lwd = 1.5,
  ...
)

Arguments

acc.mean

The accumulation rate prior consists of a gamma distribution with two parameters. Its mean is set by acc.mean (default acc.mean=20 yr/cm (or whatever age or depth units are chosen), which can be changed to, e.g., 5, 10 or 50 for different kinds of deposits). Multiple values can be given in case of hiatuses or boundaries, e.g., Bacon(hiatus.depths=23, acc.mean=c(5,20)).

acc.shape

The prior for the accumulation rate consists of a gamma distribution with two parameters. Its shape is set by acc.shape (default acc.shape=1.5; higher values result in more peaked shapes).

xlim

X-axis limits.

standalone

Boolean flag to indicate whether or not the plot is a layer for another plot or stand-alone.

xlab

x-axis label.

ylab

y-axis label.

title

Plot title.

col

Prior curve colour.

lwd

Curve thickness.

...

Optional parameters for ggplot2::stat_function.

Value

ggplot2 object.


special-uor/ageR documentation built on July 10, 2024, 10:08 p.m.