as_events {ArchaeoPhases} | R Documentation |
Coerce to Events
Description
Coerce to Events
Usage
as_events(from, ...)
## S4 method for signature 'matrix'
as_events(from, calendar, iteration = NULL)
## S4 method for signature 'data.frame'
as_events(from, calendar, iteration = NULL)
Arguments
from |
from An object to be coerced. |
... |
Currently not used. |
calendar |
A |
iteration |
A length-one |
Value
An EventsMCMC
object.
Author(s)
A. Philippe, M.-A. Vibet, N. Frerebeau
See Also
Other read methods:
as_coda()
,
as_phases()
,
check
,
read_bcal()
,
read_chronomodel
,
read_oxcal()
Examples
## 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)
[Package ArchaeoPhases version 2.0 Index]