activity {ArchaeoPhases} | R Documentation |
Activity Plot
Description
Plots the first derivative of the tempo
plot Bayesian estimate.
Usage
activity(object, ...)
## S4 method for signature 'EventsMCMC'
activity(
object,
from = min(object),
to = max(object),
grid = getOption("ArchaeoPhases.grid")
)
## S4 method for signature 'CumulativeEvents'
activity(object)
## S4 method for signature 'ActivityEvents,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, |
from |
A length-one |
to |
A length-one |
grid |
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 |
Value
-
activity()
returns anActivityEvents
object. -
plot()
is called it for its side-effects: it results in a graphic being displayed (invisibly returnsx
).
Author(s)
A. Philippe, M.-A. Vibet, T. S. Dye, N. Frerebeau
References
Dye, T. S. (2016). Long-term rhythms in the development of Hawaiian social stratification. Journal of Archaeological Science, 71: 1-9. doi:10.1016/j.jas.2016.05.006.
See Also
Other event tools:
elapse()
,
occurrence()
,
tempo()
Examples
## Coerce to MCMC
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
eve <- eve[1:10000, ]
## Tempo plot
tmp <- tempo(eve)
plot(tmp)
plot(tmp, interval = "credible", panel.first = grid())
plot(tmp, interval = "gauss", panel.first = grid())
## Activity plot
act <- activity(tmp)
plot(act, panel.first = grid())