plot.hamstr_fit: Plot hamstr Objects

View source: R/plot_stan_hamstr.R

plot.hamstr_fitR Documentation

Plot hamstr Objects

Description

plot method for class "hamstr_fit".

Usage

## S3 method for class 'hamstr_fit'
plot(
  x,
  type = c("default", "age_models", "acc_rates", "hier_acc_rates", "acc_mean_prior_post",
    "mem_prior_post", "L_prior_post", "D_prior_post", "PDF_14C"),
  summarise = TRUE,
  ...
)

Arguments

x

a hamstr_fit object

type

one of "default", "age_models","acc_rates", "hier_acc_rates", "acc_mean_prior_post", "mem_prior_post", "L_prior_post", "D_prior_post", "PDF_14C"

summarise

logical TRUE or FALSE. Plot the realisations as a summarised "ribbon" showing 50% and 95% intervals (faster), or as a spaghetti plot showing individual realisations. Defaults to TRUE (ribbon).

...

additional arguments to hamstr plotting methods

Value

a ggplot object

Examples

## Not run: 
fit <- hamstr(
  depth = MSB2K$depth,
  obs_age = MSB2K$age,
  obs_err = MSB2K$error)

plot(fit)
plot(fit, type = "acc_rates", tau = 5, kern = "U")

## End(Not run)

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