plot_hamstr_acc_rates: Plot accumulation rates

View source: R/plot_stan_hamstr.R

plot_hamstr_acc_ratesR Documentation

Plot accumulation rates

Description

Plot accumulation rates

Usage

plot_hamstr_acc_rates(
  hamstr_fit,
  axis = c("depth", "age"),
  units = c("depth_per_time", "time_per_depth"),
  tau = 0,
  kern = c("U", "G", "BH"),
  ...
)

Arguments

hamstr_fit

the object returned from stan_hamstr.

axis

plot accumulation rate against depth or age

units

plot accumulation rate in depth per time, or time per depth (or both)

tau

scale of the smoothing kernel in depth units. If tau > 0, accumulation rates are smoothed (filtered) before summary statistics are calculated, so that the accumulation rate at a given depth corresponds to the average rate over the depth interval tau. Default to 0.

kern

choice of smoothin kernal. U for uniform (moving average), G for Gaussian, BH for Berger and Heath (exponential). Defaults to U

Value

a ggplot2 object


EarthSystemDiagnostics/baconr documentation built on Dec. 10, 2023, 4:35 a.m.