Skip to contents

Ridgeline Plot of Calibrated Radiocarbon Ages

Usage

ridgelines(x, ...)

# S4 method for class 'CalibratedAges'
ridgelines(
  x,
  calendar = get_calendar(),
  interval = c("hdr", "credible"),
  level = 0.954,
  fixed = TRUE,
  decreasing = FALSE,
  col.density = "grey",
  col.interval = "#77AADD",
  ...
)

Arguments

x

A CalibratedAges or CalibratedSPD object.

...

Further parameters to be passed to aion::plot().

calendar

An aion::TimeScale object specifying the target calendar (see aion::calendar()). If NULL, rata die are returned.

interval

A character string specifying the intervals to be drawn. It must be one of "hrd" (the default), "credible" or "none". Any unambiguous substring can be given.

level

A length-one numeric vector giving the confidence level. Only used if interval is TRUE.

fixed

A logical scalar: should a fixed y scale be used? If TRUE (the default), ages are equally spaced along the y axis and arranged in chronological order. If FALSE, age positions are used (see c14_calibrate()).

decreasing

A logical scalar: should the sort order be decreasing?

col.density, col.interval

A specification for the plotting colors.

Value

ridgelines() is called it for its side-effects: it results in a graphic being displayed (invisibly returns x).

Author

N. Frerebeau

Examples

## Calibrate multiple dates
cal <- c14_calibrate(
  values = c(5000, 4500),
  errors = c(45, 35),
  names = c("X", "Y")
)

## Ridgelines plot
ridgelines(cal, panel.first = graphics::grid())