Plot OxCal Output
Usage
# S4 method for class 'OxCalOutput,missing'
plot(
x,
likelihood = TRUE,
posterior = TRUE,
warnings = TRUE,
col.likelihood = "grey",
col.posterior = "blue",
lty.likelihood = "solid",
lty.posterior = "dashed",
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = FALSE,
panel.first = NULL,
panel.last = NULL,
...
)
Arguments
- x
An
OxCalOutput
object.- likelihood
A
logical
scalar: should likelihood be drawn?- posterior
A
logical
scalar: should posterior distribution be drawn?- warnings
A
logical
scalar: should warnings be plotted?- col.likelihood, col.posterior
A
character
string specifying the color of the density.- lty.likelihood, lty.posterior
A
character
string ornumeric
value specifying the line type of the lines.- main
A
character
string giving a main title for the plot.- sub
A
character
string giving a subtitle for the plot.- ann
A
logical
scalar: should the default annotation (title and x, y and z axis labels) appear on the plot?- axes
A
logical
scalar: should axes be drawn on the plot?- frame.plot
A
logical
scalar: should a box be drawn around the plot?- panel.first
An an
expression
to be evaluated after the plot axes are set up but before any plotting takes place. This can be useful for drawing background grids.- panel.last
An
expression
to be evaluated after plotting has taken place but before the axes, title and box are added.- ...
Other graphical parameters may also be passed as arguments to this function.
Value
plot()
is called it for its side-effects: it results in a graphic
being displayed. Invisibly returns x
.
See also
Other OxCal tools:
oxcal_calibrate()
,
oxcal_configure()
,
oxcal_execute()
,
oxcal_install()
,
oxcal_parse()
Examples
if (FALSE) { # \dontrun{
## Download OxCal
oxcal_configure()
## Calibrate 14C dates
cal <- oxcal_calibrate(
names = c("X","Y"),
dates = c(5000, 4500),
errors = c(45, 35)
)
plot(cal)
} # }