plot_phases {ArchaeoPhases} | R Documentation |
Plot Phases
Description
Plots the characteristics of a group of events (phase).
Usage
## S4 method for signature 'PhasesMCMC,missing'
plot(
x,
calendar = getOption("ArchaeoPhases.calendar"),
density = TRUE,
range = TRUE,
succession = NULL,
level = 0.95,
sort = TRUE,
decreasing = TRUE,
legend = TRUE,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = FALSE,
panel.first = NULL,
panel.last = NULL,
col.density = "grey",
col.range = "black",
col.succession = c("#77AADD", "#EE8866"),
...
)
Arguments
x |
A |
calendar |
A |
density |
A |
range |
A |
succession |
A |
level |
A length-one |
sort |
A |
decreasing |
A |
legend |
A |
main |
A |
sub |
A |
ann |
A |
axes |
A |
frame.plot |
A |
panel.first |
An an |
panel.last |
An |
col.density , col.range , col.succession |
A specification for the plotting colors. |
... |
Extra parameters to be passed to |
Value
plot()
is called it for its side-effects: it results in a graphic being
displayed (invisibly returns x
).
Author(s)
A. Philippe, M.-A. Vibet, T. S. Dye, N. Frerebeau
See Also
Other plot methods:
plot_events
Examples
## Coerce to MCMC
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
## Summary
summary(eve, calendar = CE())
summary(eve, calendar = BP())
## Plot events
plot(eve, calendar = CE(), interval = "credible", level = 0.68)
plot(eve, calendar = BP(), interval = "hdr", level = 0.68)
plot(eve[, 1], interval = "hdr")
## Compute phases
pha <- phases(eve, groups = list(B = c(2, 4), A = c(1, 3)))
## Summary
summary(pha, calendar = CE())
summary(pha, calendar = BP())
## Plot phases
plot(pha, calendar = BP())
plot(pha, succession = "hiatus")
plot(pha, succession = "transition")