translate between realms
fromto(
x,
from = "calBP",
cc = 1,
postbomb = 1,
cc.dir = NULL,
thiscurve = NULL,
zero = TRUE,
width = c(),
digits = 0,
C14.col = rgb(0, 0, 1, 0.5),
D14C.col = rgb(0, 0.4, 0, 0.4),
ka = FALSE,
legend.size = 0.7
)
A plot and output showing the translations into the different realms.
The value to be translated into other realms
The realm of the entered value. Can be "calBP" for cal BP, "BCAD" for BC/AD, "C14" for C14 BP, "F14C" for F14C, or "pMC" for pMC. D14C cannot be entered as a value (you could enter the corresponding cal BP or BC/AD ages instead).
calibration curve for C14 (see caldist()
).
Whether or not to use a postbomb curve (see caldist()
).
Directory of the calibration curves. Defaults to where the package's files are stored (system.file), but can be set to, e.g., cc.dir="curves"
.
As an alternative to providing cc and/or postbomb, the data of a specific curve can be provided (3 columns: cal BP, C14 age, error).
Whether or not zero BC/AD should be included. Defaults to 0.
Width of the righthand plot. Calculated automatically by default (older ages get wider windows).
Rounding of the reported values. Defaults to 0 digits.
Colour of the 14C calibration curve. Defaults to semi-transparent blue, C14.col=rgb(0,0,1,.5)
.
Colour of the D14C curve. Defaults to semi-transparent green, D14C.col=rgb(0,.4,0,.4)
.
Whether to use years or ka (thousands of years). Defaults to ka=FALSE
.
Size of the font of the legend. Defaults to 0.7 of R's standard size.
Upon entering a value and its realm, this function will find the corresponding values in the other realms. Note that uncertainties are *not* taken into account, and especially going from C14 BP to cal BP and BC/AD ignores many calibration-related uncertainties. D14C values are only reported for entered values on the cal BP or BC/AD scale.
fromto(0, "BCAD")
fromto(2450, "C14")
Run the code above in your browser using DataLab