Skip to contents

plot method for class "hamstr_fit".

Usage

# S3 method for 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

if (FALSE) {
fit <- hamstr(
  depth = MSB2K$depth,
  obs_age = MSB2K$age,
  obs_err = MSB2K$error)

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