draw.strat {coffee}R Documentation

plot the dates and model of chronologically ordered dated depths

Description

A plot with two panels. The top panel shows the MCMC output. The bottom panel shows the individually calibrated dates (in downward light gray) as well as the modelled ages constrained by chronological ordering (upward dark-grey) and lines with the hpd ranges (black). Any similarity with swimming elephants or island chains is coincidental.

Usage

draw.strat(
  name = "mystrat",
  set = get("info"),
  structure = set$struc,
  y.scale = "positions",
  strat.dir = "strats",
  cc.dir = c(),
  sep = ",",
  postbomb = FALSE,
  calibrated.ex = c(),
  calibrated.mirror = FALSE,
  calibrated.up = TRUE,
  modelled.ex = c(),
  modelled.mirror = FALSE,
  modelled.up = FALSE,
  BCAD = FALSE,
  threshold = 0.001,
  xtop.lab = c(),
  ytop.lab = c(),
  xbottom.lab = c(),
  ybottom.lab = "position",
  calibrated.col = rgb(0, 0, 0, 0.2),
  calibrated.border = NA,
  calBP.col = rgb(0, 0, 0, 0.2),
  calBP.border = NA,
  modelled.col = rgb(0, 0, 0, 0.5),
  modelled.border = rgb(0, 0, 0, 0.5),
  range.col = "black",
  block.col = rgb(0, 0, 1, 0.05),
  gap.col = "blue",
  gap.pos = 1,
  simulation = FALSE,
  simulation.col = grey(0.5),
  pos.lim = c(),
  age.lim = c(),
  mgp = c(2, 0.7, 0),
  mar.top = c(3, 3, 1, 1),
  mar.bottom = c(3, 3, 0.5, 1),
  heights = c(0.3, 0.7),
  iterations.warning = TRUE,
  min.its = 1000,
  warning.loc = "bottomleft",
  warning.col = "red"
)

Arguments

name

Name of the stratigraphy dataset. Defaults to "mystrat".

set

This option reads the 'info' variable, which contains the data and the model output.

structure

Information about the structure (e.g., blocks, gaps, dates, undated levels) of the dataset. Filled automatically.

y.scale

The scale of the vertical axis of the main plot. This can be the positions of the dated levels ('positions') or their position order ('dates').

strat.dir

The directory where the folders of the individual stratigraphies live. Defaults to start.dir="strats".

cc.dir

Directory of calibration curve. Keep empty for the default value.

sep

Separator for the fields in the .csv file. Defaults to a comma.

postbomb

Negative C-14 ages should be calibrated using a postbomb curve. This could be 1 (northern-hemisphere region 1), 2 (NH region 2), 3 (NH region 3), 4 (southern hemisphere regions 1-2), or 5 (SH region 3).

calibrated.ex

Exaggeration of the heights of the calibrated distributions. Calculated automatically by default. Note that more precise dates peak higher than dates with lower precision.

calibrated.mirror

Whether or not the individually calibrated (but not the modelled) distributions should be drawn both up and down, quite a bit like fish or swans. Defaults to FALSE.

calibrated.up

Whether the calibrated distributions should be drawn upward or downward (the default, resembling the reflections of islands in the sea, or swimming animals if you wish)

modelled.ex

Exaggaration of the heights of the age-modelled distributions. Calculated automatically by default. Note that more precise ages peak higher than ages with lower precision.

modelled.mirror

Whether or not the age-modelled distributions should be drawn both up and down, quite a bit like fish or swans. Defaults to FALSE.

modelled.up

Whether the age-modelled distributions should be drawn downward or upward (the default, resembling islands in the sea)

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.

threshold

Value below which probabilities should not be drawn any more. Defaults to 0.001 of the distribution's peak.

xtop.lab

The label for the x-axis of the top panel showing the MCMC run. Defaults to "iterations".

ytop.lab

The label for the y-axis of the top panel showing the MCMC run. Defaults to "energy".

xbottom.lab

The label for the x-axis of the bottom panel showing the age-model output. Defaults to "cal BP" or "BC/AD".

ybottom.lab

The label for the y-axis of the bottom panel showing the age-model output. Defaults to "position".

calibrated.col

Colour of the inside of the unmodelled, calibrated ages. Defaults to semi-transparent light grey, rgb(0,0,0,0.5.

calibrated.border

Colour of the border of the unmodelled non-14C ages. Defaults to nothing, NA.

calBP.col

Colour of the inside of the unmodelled non-14C ages. Defaults to semi-transparent light grey, rgb(0,0,0,0.5.

calBP.border

Colour of the border of the unmodelled, calibrated ages. Defaults to nothing, NA.

modelled.col

Colour of the inside of the modelled ages. Defaults to semi-transparent dark grey, rgb(0,0,0,0.5.

modelled.border

Colour of the border of the modelled ages. Defaults to semi-transparent dark grey, rgb(0,0,0,0.5.

range.col

Colour of the hpd ranges. Defaults to "black".

block.col

Colour of the field indicating unordered dates within a 'block'. Defaults to light-blue, rgb(0,0,1,.05).

gap.col

Colour of the diagonal lines and parameters of any gaps.

gap.pos

Plotting position of the gap information.

simulation

Whether or not the data are part of a simulated stratigraphy.

simulation.col

If the data are part of a simulated stratigraphy, the 'true' ages can also be plotted.

pos.lim

Limit of the main y-axis.

age.lim

Limit of the main x-axis.

mgp

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

mar.top

Margins around the top panel. Defaults to mar.top=c(3,3,1,1).

mar.bottom

Margins around the bottom panel. Defaults to mar.bottom=c(3,3,0.5,1).

heights

Relative heights of the two panels in the plot. Defaults to 0.3 for the top and 0.7 for the bottom panel.

iterations.warning

Whether or not to plot a warning if there are < 3000 iterations, too few for a reliable MCMC run.

min.its

The minimum amount of iterations, below which a warning is printed (if iterations.warning=TRUE). Defaults to 1,000.

warning.loc

Location of the warning

warning.col

Colour of the warning - defaults to red.

Value

A plot with two panels showing the MCMC run and the calibrated and modelled ages.

Author(s)

Maarten Blaauw


[Package coffee version 0.3.0 Index]