Estimates the event and accumulation density.
Usage
density_event(object, ...)
density_accumulation(object, ...)
# S4 method for class 'EventDate'
density_event(object, dates = NULL, calendar = NULL, n = 500, ...)
# S4 method for class 'EventDate'
density_accumulation(
object,
dates = NULL,
calendar = NULL,
type = c("activity", "tempo"),
n = 500,
...
)Arguments
- object
An
EventDateobject.- ...
Currently not used.
- dates
A
numericvector of dates expressed ascalendaryears or rata die (ifcalendarisNULL).- calendar
An
aion::TimeScaleobject specifying the calendar ofdates(seeaion::calendar()). IfNULL(the default), rata die are expected.- n
A length-one non-negative
numericvector giving the desired length of the vector of quantiles for density computation.- type
A
characterstring indicating the type of plot. It must be one of "activity" (default) or "tempo" (see details). Any unambiguous substring can be given.
Value
An aion::TimeSeries object.
See also
Other event date tools:
event(),
model_event,
predict_event()
Examples
## Data from Peeples and Schachner 2012
data("zuni", package = "folio")
## Assume that some assemblages are reliably dated (this is NOT a real example)
zuni_dates <- c(
LZ0569 = 1097, LZ0279 = 1119, CS16 = 1328, LZ0066 = 1111,
LZ0852 = 1216, LZ1209 = 1251, CS144 = 1262, LZ0563 = 1206,
LZ0329 = 1076, LZ0005Q = 859, LZ0322 = 1109, LZ0067 = 863,
LZ0578 = 1180, LZ0227 = 1104, LZ0610 = 1074
)
## Model the event and accumulation date for each assemblage
model <- event(zuni, zuni_dates, rank = 10)
plot(model, select = 1:10, event = TRUE, flip = TRUE)
