draw.contamination: Draw contamination impacts

View source: R/plots.R

draw.contaminationR Documentation

Draw contamination impacts

Description

Show how contamination with different fractions of modern carbon affect observed C-14 ages.

Usage

draw.contamination(
  from = 0,
  to = 50000,
  ka = TRUE,
  age.res = 500,
  xlim = c(),
  ylim = c(),
  colours = rainbow(age.res),
  max.contam = 0.1,
  contam.F14C = 1,
  contam.legend = max.contam * c(1/100, (1:5)/50, (1:4)/5, 1),
  legend.pos = 0.07,
  legend.cex = 0.6,
  grid = TRUE,
  xaxs = "i",
  yaxs = "i"
)

Arguments

from

Minimum 14C age for the plot. Defaults to 0

to

Maximum 14C age for the plot. Defaults to 50e3.

ka

Use C14 kBP. Defaults to TRUE.

age.res

Resolution of age scale. Defaults to 500, which results in smooth curves. Higher numbers will take longer to draw.

xlim

Limits of the horizontal axis.

ylim

Limits of the vertical axis.

colours

Colours of the percentages. Defaults to rainbow colours.

max.contam

Maximum contamination level as a fraction of the sample. Defaults to 0.1 (10%).

contam.F14C

14C activity of the sample. Defaults to 'modern' 14C, F14C=1.

contam.legend

Percentages for which numbers will be plotted.

legend.pos

horizontal position beyond which the percentage values will be plotted

legend.cex

font size of the legend

grid

Whether to plot a grid. Defaults to TRUE

xaxs

Whether or not to extend the limits of the horizontal axis. Defaults to xaxs="i" which does not extend.

yaxs

Whether or not to extend the limits of the vertical axis. Defaults to yaxs="i" which does not extend.

Value

A plot of real and observed (contamination-impacted) C14 ages.

Examples

  draw.contamination()
  draw.contamination(40e3, 50e3, ka=FALSE)

Maarten14C/IntCal documentation built on Oct. 11, 2023, 1:25 a.m.