Add dated depths to plots, e.g. to show dates that weren't used in the age-depth model
add.dates(mn, sdev, depth, cc = 1, above = 0.001, ex = 10,
normal = TRUE, normalise = TRUE, t.a = 3, t.b = 4, age.res = 100,
times = 20, col = rgb(1, 0, 0, 0.5), border = rgb(1, 0, 0, 0.5),
rotate.axes = FALSE, mirror = TRUE, up = TRUE, BCAD = FALSE,
pch = 4)
Reported mean of the date. Can be multiple dates.
Reported error of the date. Can be multiple dates.
Depth of the date.
The calibration curve to use: cc=1
for IntCal13 (northern hemisphere terrestrial), cc=2
for Marine13 (marine), cc=0
for none (dates that are already on the cal BP scale).
Treshold for plotting of probability values. Defaults to above=1e-3
.
Exaggeration of probability distribution plots. Defaults to ex=50
.
By default, Bacon uses the student's t-distribution to treat the dates. Use normal=TRUE
to use the normal/Gaussian distribution. This will generally give higher weight to the dates.
By default, the date is normalised to an area of 1 (normalise=TRUE
).
The dates are treated using the student's t distribution by default (normal=FALSE
).
The student's t-distribution has two parameters, t.a and t.b, set at 3 and 4 by default (see Christen and Perez, 2010).
If you want to assign narrower error distributions (more closely resembling the normal distribution), set t.a and t.b at for example 33 and 34 respectively (e.g., for specific dates in your .csv file).
For symmetry reasons, t.a must always be equal to t.b-1.
The dates are treated using the student's t distribution by default (normal=FALSE
).
The student's t-distribution has two parameters, t.a and t.b, set at 3 and 4 by default (see Christen and Perez, 2010).
If you want to assign narrower error distributions (more closely resembling the normal distribution), set t.a and t.b at for example 33 and 34 respectively (e.g., for specific dates in your .csv file).
For symmetry reasons, t.a must always be equal to t.b-1.
Resolution of the date's distribution. Defaults to date.res=100
.
The extent of the range to be calculated for each date. Defaults to times=20
.
The colour of the ranges of the date. Default is semi-transparent red: col=rgb(1,0,0,.5)
.
The colours of the borders of the date. Default is semi-transparent red: border=rgb(1,0,0,0.5)
.
The default of plotting age on the horizontal axis and event probability on the vertical one can be changed with rotate.axes=TRUE
.
Plot the dates as 'blobs'. Set to mirror=FALSE
to plot simple distributions.
Directions of distributions if they are plotted non-mirrored. Default up=TRUE
.
The calendar scale of graphs is in cal BP
by default, but can be changed to BC/AD using BCAD=TRUE
.
The shape of any marker to be added to the date. Defaults to a cross, pch=4
. To leave empty, use pch=NA
.
A date's distribution, added to an age-depth plot.
Sometimes it is useful to add additional dating information to age-depth plots, e.g., to show outliers or how dates calibrate with different estimated offsets.
Blaauw, M. and Christen, J.A., Flexible paleoclimate age-depth models using an autoregressive gamma process. Bayesian Anal. 6 (2011), no. 3, 457--474. https://projecteuclid.org/download/pdf_1/euclid.ba/1339616472
# NOT RUN {
Bacon(run=FALSE, coredir=tempfile())
agedepth()
add.dates(5000, 100, 60)
# }
Run the code above in your browser using DataLab