Read and Parse OxCal Output
oxcal_parse(object)
# S4 method for OxCalFiles
oxcal_parse(object)
# S4 method for character
oxcal_parse(object)
A character
string naming a JavaScript file which the data
are to be read from (or an OxCalFiles
object returned by
oxcal_execute()
).
An OxCalOutput
object.
Other OxCal tools:
oxcal_calibrate()
,
oxcal_configure()
,
oxcal_execute()
,
oxcal_install()
,
plot()
if (FALSE) {
## Download OxCal
oxcal_configure()
## Custom script
scr <- 'Plot()
{
Sequence("Sequence1")
{
Boundary("Begin");
Phase("Phase1")
{
R_Date("Lab-1",5000,25);
R_Date("Lab-2",4900,37);
};
Boundary("Between");
Phase("Phase2")
{
R_Date("Lab-3",4800,43);
};
Boundary("End");
};
};'
out <- oxcal_execute(scr)
res <- oxcal_parse(out)
plot(res)
plot(res, likelihood = TRUE, posterior = FALSE)
plot(res, likelihood = FALSE, posterior = TRUE)
}