plotTimingPatterns {BTYDplus}R Documentation

Plot timing patterns of sampled customers

Description

Plot timing patterns of sampled customers

Usage

plotTimingPatterns(
  elog,
  n = 40,
  T.cal = NULL,
  T.tot = NULL,
  title = "Sampled Timing Patterns",
  headers = NULL
)

Arguments

elog

Event log, a data.frame with columns cust and transaction time t or date.

n

Number of sampled customers.

T.cal

End of calibration period, which is visualized as a vertical line.

T.tot

End of observation period

title

Plot title.

headers

Vector of length 2 for adding headers to the plot, e.g. c("Calibration", "Holdout").

Examples

data("groceryElog")
plotTimingPatterns(groceryElog, T.tot = "2008-12-31")
plotTimingPatterns(groceryElog, T.cal = "2006-12-31", headers = c("Calibration", "Holdout"))

[Package BTYDplus version 1.2.0 Index]