draw.MCMCrings {coffee}R Documentation

plot the dates and model of a MCMC wiggle-match dated tree

Description

A plot with three panels. The top panels show the MCMC run (left) and the prior (gren) and posterior (grey) distributions for deltaR, the age offset (assumed to be constant among all C14 ages). The main panel shows the age distribution of the inner ring, and also the placements of the radiocarbon dates on the calibration curve taking the best (mode) calendar age. Grey dots show the placements of the dates with the modelled age offset.

Usage

draw.MCMCrings(
  yrs,
  dR,
  dat,
  cc,
  Us,
  delta.R,
  delta.STD,
  BCAD,
  cal.lim = c(),
  cal.lab = c(),
  C14.lim = c(),
  C14.lab = c(),
  mar = c(3, 3, 1, 1),
  mgp = c(1.7, 0.7, 0),
  main.height = 0.55,
  dist.height = 0.5,
  name = c(),
  name.loc = "topleft",
  MCMC.col = grey(0.3),
  prior.col = "green",
  prior.lab = "delta.R",
  text.col = "red",
  post.col = rgb(0, 0, 0, 0.3),
  cc.col = rgb(0, 0, 1, 0.5),
  dets.col = "black",
  adj.col = grey(0.5)
)

Arguments

yrs

The modelled years.

dR

The modelled delta.R values.

dat

The data, extracted from the .csv file.

cc

Calibration curve to be used. Could be 1 (IntCal20; default), 2 (Marine20), 3 (SHCal20) or 4 (custom curve).

Us

Energy of the MCMC run (for the topleft graph).

delta.R

Prior for the mean delta.R.

delta.STD

Prior for the standard deviation of delta.R.

BCAD

The calendar scale of graphs and age output-files is in cal BP by default, but can be changed to BC/AD using BCAD=TRUE.

cal.lim

The limits for the bottom calendar axis. Calculated automatically by default.

cal.lab

The labels for the bottom calendar axis (default age.lab="cal BP" or "BC/AD".

C14.lim

The limits for the bottom C14 axis. Calculated automatically by default.

C14.lab

The labels for the bottom y-axis. Defaults to 14C BP with superscript 14, so expression(""^14*C~BP).

mar

Axis margins. Defaults to mar=c(3, 3, 1, 1).

mgp

Axis text margins (where should titles, labels and tick marks be plotted). Defaults to mgp=c(1.7, .7, .0).

main.height

Height of the main panel, relative to the top panels. Defaults to 0.55.

dist.height

Height of the age distribution, relative to the vertical axis extent. Defaults to 0.5.

name

Name to plot in the main panel.

name.loc

Location of the name, defaults to name.loc="topleft".

MCMC.col

Colour of the MCMC run. Defaults to dark grey, MCMC.col=grey(0.3).

prior.col

Colour of the prior for the delta.R distribution, default green.

prior.lab

Label of the prior. Defaults to "delta.R".

text.col

Colour of the text describing the delta.R prior. Defaults to red.

post.col

Colour of the posterior distributions. Defaults to semi-transparent dark grey.

cc.col

Colour of the calibration curve. Defaults to semi-transparent blue, dist.col=rgb(0,0,1,0.5).

dets.col

Colour of the radiocarbon determinations ranges. Defaults to "black" but could also give colours for each individual, date, e.g., dets.col=1:10.

adj.col

Colour of the adjusted C14 dates. Defaults to grey.

Value

A plot with the MCMC run, the prior and posterior for deltaR, and the posterior age estimate together with the placements of the radiocarbon dates.

Author(s)

Maarten Blaauw, Marco Aquino Lopez


[Package coffee version 0.4.3 Index]