Coerce to Events
as_events(from, ...)
# S4 method for class 'matrix'
as_events(from, calendar, iteration = NULL)
# S4 method for class 'data.frame'
as_events(from, calendar, iteration = NULL)
from An object to be coerced.
Currently not used.
A aion::TimeScale
object specifying the source
calendar (see calendar()
).
A length-one numeric
vector specifying the index of the
iteration column.
An EventsMCMC
object.
Other read methods:
as_coda()
,
as_phases()
,
check
,
read_bcal()
,
read_chronomodel
,
read_oxcal()
## Coerce to events
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
## Plot first event
plot(eve[, 1], interval = "hdr")
## Colorfull plot
plot(eve, col.density = c("#4477AA", "#EE6677", "#228833", "#CCBB44"))
## Plot events
plot(eve, calendar = CE(), interval = "credible", level = 0.68)
plot(eve, calendar = BP(), interval = "hdr", level = 0.68)
## Plot only 95% credible interval
plot(eve, density = FALSE, interval = "credible", lwd = 3, tcl = 0)