occurrence {ArchaeoPhases} | R Documentation |
Occurrence Plot
Description
A statistical graphic designed for the archaeological study of when events of a specified kind occurred.
Usage
occurrence(object, ...)
## S4 method for signature 'EventsMCMC'
occurrence(object, level = 0.95)
## S4 method for signature 'OccurrenceEvents,missing'
plot(
x,
calendar = getOption("ArchaeoPhases.calendar"),
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes,
panel.first = NULL,
panel.last = NULL,
...
)
Arguments
object |
An |
... |
Other graphical parameters may also be passed as
arguments to this function, particularly, |
level |
A length-one |
x |
An |
calendar |
A |
main |
A |
sub |
A |
ann |
A |
axes |
A |
frame.plot |
A |
panel.first |
An an |
panel.last |
An |
Details
If we have k
events, then we can estimate the calendar date t
corresponding to the smallest date such that the number of events observed
before t
is equal to k
.
The occurrence()
estimates these occurrences and gives the credible
interval or the highest posterior density (HPD) region for a given level
of confidence.
Value
-
occurrence()
returns anOccurrenceEvents
object. -
plot()
is called it for its side-effects: it results in a graphic being displayed (invisibly returnsx
).
An OccurrenceEvents
object.
Author(s)
A. Philippe, M.-A. Vibet, T. S. Dye, N. Frerebeau
See Also
Other event tools:
activity()
,
elapse()
,
tempo()
Examples
## Coerce to MCMC
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
eve <- eve[1:10000, ]
## Occurrence plot
occ <- occurrence(eve)
plot(occ, panel.first = graphics::grid())