Plot Calibrated Radiocarbon Ages
Usage
# S4 method for class 'CalibratedAges,missing'
plot(
x,
calendar = get_calendar(),
interval = c("hdr", "credible"),
level = 0.954,
sort = TRUE,
decreasing = FALSE,
col = "grey",
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = TRUE,
panel.first = NULL,
panel.last = NULL,
...
)
# S4 method for class 'CalibratedSPD,missing'
plot(
x,
calendar = get_calendar(),
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = TRUE,
panel.first = NULL,
panel.last = NULL,
...
)Arguments
- x
A
CalibratedAgesorCalibratedSPDobject.- calendar
An
aion::TimeScaleobject specifying the target calendar (seeaion::calendar()). IfNULL, rata die are returned.- interval
A
characterstring specifying the intervals to be drawn. It must be one of "hrd" (the default) or "credible". Any unambiguous substring can be given.- level
A length-one
numericvector giving the confidence level. Only used ifintervalisTRUE.- sort
A
logicalscalar: should ages be arranged in chronological order?- decreasing
A
logicalscalar: should the sort order be decreasing?- col
A specification for the plotting colors.
- main
A
characterstring giving a main title for the plot.- sub
A
characterstring giving a subtitle for the plot.- ann
A
logicalscalar: should the default annotation (title and x and y labels) appear on the plot?- axes
A
logicalscalar: should axes be drawn on the plot?- frame.plot
A
logicalscalar: should a box be drawn around the plot?- panel.first
An an
expressionto 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
expressionto be evaluated after plotting has taken place but before the axes, title and box are added.- ...
Further parameters to be passed to
aion::plot().
Value
plot() is called it for its side-effects: it results in a graphic
being displayed. Invisibly returns x.
See also
Other radiocarbon tools:
F14C,
c14_calibrate(),
c14_combine(),
c14_count(),
c14_curve(),
c14_sample(),
c14_spd(),
c14_uncalibrate(),
rec_plot,
ridgelines()
Examples
## Calibrate multiple dates
cal <- c14_calibrate(
values = c(5000, 4500),
errors = c(45, 35),
names = c("X", "Y")
)
## Specify calendar
plot(cal, calendar = b2k(), flip = TRUE)
## HDR intervals (default)
plot(cal, interval = "hdr", level = 0.95)
## Credible intervals
plot(cal, interval = "credible", level = 0.95)
## No intervals
plot(cal, level = 0)